[FREELDR]

More syntax fixes for ML

svn path=/trunk/; revision=52348
This commit is contained in:
Timo Kreuzer 2011-06-18 19:51:26 +00:00
parent 8ea179b79b
commit 966128554b

View file

@ -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]