mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:23:03 +00:00
[FREELDR]
More syntax fixes for ML svn path=/trunk/; revision=52348
This commit is contained in:
parent
8ea179b79b
commit
966128554b
1 changed files with 5 additions and 5 deletions
|
@ -39,17 +39,17 @@ _RealEntryPoint:
|
||||||
mov ss, ax
|
mov ss, ax
|
||||||
|
|
||||||
/* Setup protected mode stack */
|
/* Setup protected mode stack */
|
||||||
mov esp, dword ptr [stack32]
|
mov esp, dword ptr ds:[stack32]
|
||||||
|
|
||||||
/* Load the IDT */
|
/* Load the IDT */
|
||||||
#ifdef _USE_ML
|
#ifdef _USE_ML
|
||||||
lidt fword ptr [i386idtptr]
|
lidt fword ptr ds:[i386idtptr]
|
||||||
#else
|
#else
|
||||||
lidt i386idtptr
|
lidt i386idtptr
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Continue execution */
|
/* Continue execution */
|
||||||
jmp dword ptr [ContinueAddress]
|
jmp dword ptr ds:[ContinueAddress]
|
||||||
|
|
||||||
ContinueAddress:
|
ContinueAddress:
|
||||||
.long _FrldrStartup
|
.long _FrldrStartup
|
||||||
|
@ -60,9 +60,9 @@ _FrldrStartup:
|
||||||
/* Store BootDrive and BootPartition */
|
/* Store BootDrive and BootPartition */
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
mov al, dl
|
mov al, dl
|
||||||
mov dword ptr [_FrldrBootDrive], eax
|
mov dword ptr ds:[_FrldrBootDrive], eax
|
||||||
mov al, dh
|
mov al, dh
|
||||||
mov dword ptr [_FrldrBootPartition], eax
|
mov dword ptr ds:[_FrldrBootPartition], eax
|
||||||
|
|
||||||
/* Patch long jump with real mode entry point */
|
/* Patch long jump with real mode entry point */
|
||||||
mov eax, dword ptr ds:[BSS_RealModeEntry]
|
mov eax, dword ptr ds:[BSS_RealModeEntry]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue