Skip to content

Commit ad53f6c

Browse files
committed
Rename from Mobility.Runtime.x64 to Mobility.Platform.x64.
1 parent b07821e commit ad53f6c

5 files changed

Lines changed: 146 additions & 146 deletions

File tree

‎Mobility.Core/Mobility.Core.vcxproj‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@
3838
<ClInclude Include="Mobility.Memory.SmallHeap.h" />
3939
<ClInclude Include="Mobility.Platform.Interface.h" />
4040
<ClInclude Include="Mobility.Runtime.Core.h" />
41-
<ClInclude Include="Mobility.Runtime.x64.h" />
41+
<ClInclude Include="Mobility.Platform.x64.h" />
4242
<ClInclude Include="Mobility.Unicode.Core.h" />
4343
</ItemGroup>
4444
<ItemGroup>
45-
<None Include="Mobility.Runtime.x64.c" />
45+
<None Include="Mobility.Platform.x64.c" />
4646
</ItemGroup>
4747
<ItemGroup>
48-
<None Include="Mobility.Runtime.x64.Assembly.asm" />
48+
<None Include="Mobility.Platform.x64.Assembly.asm" />
4949
</ItemGroup>
5050
<Target Name="MobilityCoreBuildAssemblySource" BeforeTargets="_MASM;_MARMASM">
5151
<ItemGroup Condition="'$(Platform)' == 'x64'">
52-
<MASM Include="Mobility.Runtime.x64.Assembly.asm" />
52+
<MASM Include="Mobility.Platform.x64.Assembly.asm" />
5353
</ItemGroup>
5454
</Target>
5555
<Target Name="MobilityCoreBuildCSource" BeforeTargets="BeforeClCompile">
5656
<ItemGroup Condition="'$(Platform)' == 'x64'">
57-
<ClCompile Include="Mobility.Runtime.x64.c" />
57+
<ClCompile Include="Mobility.Platform.x64.c" />
5858
</ItemGroup>
5959
</Target>
6060
<Import Sdk="Mile.Uefi" Version="1.0.1484" Project="Mile.Uefi.targets" />

Mobility.Core/Mobility.Runtime.x64.Assembly.asm renamed to Mobility.Core/Mobility.Platform.x64.Assembly.asm

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;
22
; PROJECT: Mobility
3-
; FILE: Mobility.Runtime.x64.Assembly.asm
3+
; FILE: Mobility.Platform.x64.Assembly.asm
44
; PURPOSE: Implementation for Mobility Runtime x64 Specific Assembly Parts
55
;
66
; LICENSE: The MIT License
@@ -100,7 +100,7 @@ MoPlatformWriteCr3 ENDP
100100

101101
; -----------------------------------------------------------------------------
102102
; EXTERN_C VOID MOAPI MoPlatformLoadGlobalDescriptorTable(
103-
; _In_ PMO_RUNTIME_X64_PSEUDO_DESCRIPTOR Descriptor);
103+
; _In_ PMO_PLATFORM_X64_PSEUDO_DESCRIPTOR Descriptor);
104104
; -----------------------------------------------------------------------------
105105
MoPlatformLoadGlobalDescriptorTable PROC
106106
; RCX = Descriptor
@@ -111,7 +111,7 @@ MoPlatformLoadGlobalDescriptorTable ENDP
111111

112112
; -----------------------------------------------------------------------------
113113
; EXTERN_C VOID MOAPI MoPlatformLoadInterruptDescriptorTable(
114-
; _In_ PMO_RUNTIME_X64_PSEUDO_DESCRIPTOR Descriptor);
114+
; _In_ PMO_PLATFORM_X64_PSEUDO_DESCRIPTOR Descriptor);
115115
; -----------------------------------------------------------------------------
116116
MoPlatformLoadInterruptDescriptorTable PROC
117117
; RCX = Descriptor
@@ -188,7 +188,7 @@ MoPlatformSwitchToNewStack PROC
188188
; Call the function.
189189
call rdx
190190

191-
; If the function returns, we halt because the stack has been switched
191+
; If the function returns, we halt because the stack has been switched
192192
; and we cannot return to the original caller.
193193
cli
194194
HaltLoop:
@@ -197,7 +197,7 @@ HaltLoop:
197197
MoPlatformSwitchToNewStack ENDP
198198

199199
; -----------------------------------------------------------------------------
200-
; EXTERN_C PMO_RUNTIME_X64_INTERRUPT_HANDLER MoPlatformInterruptHandlers[256];
200+
; EXTERN_C PMO_PLATFORM_X64_INTERRUPT_HANDLER MoPlatformInterruptHandlers[256];
201201
; -----------------------------------------------------------------------------
202202
; The external array of interrupt handlers.
203203
EXTRN MoPlatformInterruptHandlers: QWORD
@@ -240,7 +240,7 @@ MoPlatformInterruptCommonEntry PROC PUBLIC FRAME
240240
; +---------------------+ <-- RBP, 16-byte aligned
241241

242242
; Since here the stack pointer is 16-byte aligned, so
243-
; MO_RUNTIME_X64_FXSAVE_AREA of PMO_RUNTIME_X64_INTERRUPT_CONTEXT
243+
; MO_PLATFORM_X64_FXSAVE_AREA of PMO_PLATFORM_X64_INTERRUPT_CONTEXT
244244
; is 16-byte aligned
245245

246246
; MO_UINT64 Rdi, Rsi, Rbp, Rsp, Rbx, Rdx, Rcx, Rax;
@@ -343,7 +343,7 @@ MoPlatformInterruptCommonEntry PROC PUBLIC FRAME
343343
mov rax, dr0
344344
push rax
345345

346-
; MO_RUNTIME_X64_FXSAVE_AREA FxSaveState;
346+
; MO_PLATFORM_X64_FXSAVE_AREA FxSaveState;
347347

348348
sub rsp, 512
349349
mov rcx, rsp
@@ -376,11 +376,11 @@ MoPlatformInterruptCommonEntry PROC PUBLIC FRAME
376376
NonNullValue:
377377
; BUGBUG: This should not be necessary, but it's currently true that
378378
; interrupt handlers enable interrupts
379-
cli
379+
cli
380380
; MO_UINT64 ExceptionData;
381381
add rsp, 8
382382

383-
; MO_RUNTIME_X64_FXSAVE_AREA FxSaveState;
383+
; MO_PLATFORM_X64_FXSAVE_AREA FxSaveState;
384384

385385
mov rcx, rsp
386386
fxrstor [rcx]
@@ -504,7 +504,7 @@ ALIGN 8
504504

505505
IF DummyCodeNeeded
506506
; Push a dummy error code. Use rax to get a 1-byte instruction to fit.
507-
push rax
507+
push rax
508508
ENDIF
509509

510510
; Must use LOW(Vector) to ensure only use 2-byte instruction to push vector
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
/*
22
* PROJECT: Mobility
3-
* FILE: Mobility.Runtime.x64.c
3+
* FILE: Mobility.Platform.x64.c
44
* PURPOSE: Implementation for Mobility Runtime x64 Specific Parts
55
*
66
* LICENSE: The MIT License
77
*
88
* MAINTAINER: MouriNaruto (Kenji.Mouri@outlook.com)
99
*/
1010

11-
#include "Mobility.Runtime.x64.h"
11+
#include "Mobility.Platform.x64.h"
1212

13-
PMO_RUNTIME_X64_INTERRUPT_HANDLER MoPlatformInterruptHandlers[256];
13+
PMO_PLATFORM_X64_INTERRUPT_HANDLER MoPlatformInterruptHandlers[256];
1414

1515
EXTERN_C VOID MOAPI MoPlatformSetSegmentDescriptorBase(
16-
_Out_ PMO_RUNTIME_X64_SEGMENT_DESCRIPTOR Descriptor,
16+
_Out_ PMO_PLATFORM_X64_SEGMENT_DESCRIPTOR Descriptor,
1717
_In_ MO_UINT32 Base)
1818
{
1919
if (Descriptor)
@@ -25,7 +25,7 @@ EXTERN_C VOID MOAPI MoPlatformSetSegmentDescriptorBase(
2525
}
2626

2727
EXTERN_C VOID MOAPI MoPlatformSetSegmentDescriptorLimit(
28-
_Out_ PMO_RUNTIME_X64_SEGMENT_DESCRIPTOR Descriptor,
28+
_Out_ PMO_PLATFORM_X64_SEGMENT_DESCRIPTOR Descriptor,
2929
_In_ MO_UINT32 Limit)
3030
{
3131
if (Descriptor)
@@ -36,7 +36,7 @@ EXTERN_C VOID MOAPI MoPlatformSetSegmentDescriptorLimit(
3636
}
3737

3838
EXTERN_C VOID MOAPI MoPlatformSetSystemSegmentDescriptorBase(
39-
_Out_ PMO_RUNTIME_X64_SYSTEM_SEGMENT_DESCRIPTOR Descriptor,
39+
_Out_ PMO_PLATFORM_X64_SYSTEM_SEGMENT_DESCRIPTOR Descriptor,
4040
_In_ MO_UINT64 Base)
4141
{
4242
if (Descriptor)
@@ -49,7 +49,7 @@ EXTERN_C VOID MOAPI MoPlatformSetSystemSegmentDescriptorBase(
4949
}
5050

5151
EXTERN_C VOID MOAPI MoPlatformSetSystemSegmentDescriptorLimit(
52-
_Out_ PMO_RUNTIME_X64_SYSTEM_SEGMENT_DESCRIPTOR Descriptor,
52+
_Out_ PMO_PLATFORM_X64_SYSTEM_SEGMENT_DESCRIPTOR Descriptor,
5353
_In_ MO_UINT32 Limit)
5454
{
5555
if (Descriptor)
@@ -60,7 +60,7 @@ EXTERN_C VOID MOAPI MoPlatformSetSystemSegmentDescriptorLimit(
6060
}
6161

6262
EXTERN_C VOID MOAPI MoPlatformSetIdtGateDescriptorOffset(
63-
_Out_ PMO_RUNTIME_X64_IDT_GATE_DESCRIPTOR Descriptor,
63+
_Out_ PMO_PLATFORM_X64_IDT_GATE_DESCRIPTOR Descriptor,
6464
_In_ MO_UINT64 Offset)
6565
{
6666
if (Descriptor)

0 commit comments

Comments
 (0)