From 5577c61a50b820f042815aec16ec2ea37bb01653 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 18 Jun 2011 08:05:35 +0000 Subject: [PATCH] [FEELDR] - Fix offset in manually encoded lgdt instruction - improve syntax for ML svn path=/trunk/; revision=52326 --- reactos/boot/freeldr/freeldr/arch/realmode/i386.S | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/arch/realmode/i386.S b/reactos/boot/freeldr/freeldr/arch/realmode/i386.S index bab9d0c2020..b4ee327bd88 100644 --- a/reactos/boot/freeldr/freeldr/arch/realmode/i386.S +++ b/reactos/boot/freeldr/freeldr/arch/realmode/i386.S @@ -25,7 +25,7 @@ RealModeEntryPoint: mov ss, ax /* Setup the stack */ - mov sp, word ptr ds:stack16 + mov sp, word ptr ds:[stack16] /* Enable A20 address line */ call EnableA20 @@ -42,7 +42,7 @@ RealModeEntryPoint: add eax, FREELDR_PE_BASE /* Save entry point */ - mov dword ptr [pm_entrypoint], eax + mov dword ptr ds:[pm_entrypoint], eax jmp exit_to_protected @@ -98,7 +98,7 @@ inrmode: /* Do the callback, specified by bx */ shl bx, 1 - call word ptr ds:[callback_table + bx] + call word ptr ds:callback_table[bx] /* @@ -115,7 +115,7 @@ exit_to_protected: /* Load the GDT */ #ifdef _USE_ML DB 0Fh, 01h, 16h - DW rmode_idtptr + DW gdtptr #else lgdt gdtptr #endif