i386BootDrive and i386BootPartition are ULONGs, and before saving a byte value they must be zeroed.

Thanks to Magnus for identifying the problem.

svn path=/trunk/; revision=24848
This commit is contained in:
Aleksey Bragin 2006-11-26 21:46:45 +00:00
parent dbf2ea6e40
commit f8446ca7cb

View file

@ -46,6 +46,11 @@ EXTERN(RealEntryPoint)
.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 @@ EXTERN(RealEntryPoint)
movb %dh,(_i386BootPartition)
/* GO! */
xorl %eax,%eax
pushl %eax
call _BootMain