Author: fireball Date: Mon Nov 27 00:46:45 2006 New Revision: 24848
URL: http://svn.reactos.org/svn/reactos?rev=24848&view=rev Log: i386BootDrive and i386BootPartition are ULONGs, and before saving a byte value they must be zeroed.
Thanks to Magnus for identifying the problem.
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/arch.S
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/arch.S URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/i... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/arch/i386/arch.S (original) +++ trunk/reactos/boot/freeldr/freeldr/arch/i386/arch.S Mon Nov 27 00:46:45 2006 @@ -46,6 +46,11 @@
.code32
+ /* Zero i386BootDrive and i386BootPartition */ + xorl %eax,%eax + movl %eax,(_i386BootDrive) + movl %eax,(_i386BootPartition) + /* Store the boot drive */ movb %dl,(_i386BootDrive)
@@ -53,7 +58,6 @@ movb %dh,(_i386BootPartition)
/* GO! */ - xorl %eax,%eax pushl %eax call _BootMain