[ros-diffs] [fireball] 24848: i386BootDrive and i386BootPartition are ULONGs, and before saving a byte value they must be zeroed. Thanks to Magnus for identifying the problem.
fireball at svn.reactos.org
fireball at svn.reactos.org
Sun Nov 26 22:46:45 CET 2006
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/i386/arch.S?rev=24848&r1=24847&r2=24848&view=diff
==============================================================================
--- 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
More information about the Ros-diffs
mailing list