[ros-diffs] [tkreuzer] 52326: [FEELDR] - Fix offset in manually encoded lgdt instruction - improve syntax for ML

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sat Jun 18 08:05:36 UTC 2011


Author: tkreuzer
Date: Sat Jun 18 08:05:35 2011
New Revision: 52326

URL: http://svn.reactos.org/svn/reactos?rev=52326&view=rev
Log:
[FEELDR]
- Fix offset in manually encoded lgdt instruction
- improve syntax for ML


Modified:
    trunk/reactos/boot/freeldr/freeldr/arch/realmode/i386.S

Modified: trunk/reactos/boot/freeldr/freeldr/arch/realmode/i386.S
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/realmode/i386.S?rev=52326&r1=52325&r2=52326&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/realmode/i386.S [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/realmode/i386.S [iso-8859-1] Sat Jun 18 08:05:35 2011
@@ -25,7 +25,7 @@
     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 @@
     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 @@
 
     /* 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 @@
     /* Load the GDT */
 #ifdef _USE_ML
     DB 0Fh, 01h, 16h
-    DW rmode_idtptr
+    DW gdtptr
 #else
     lgdt gdtptr
 #endif




More information about the Ros-diffs mailing list