mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:03:00 +00:00
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:
parent
dbf2ea6e40
commit
f8446ca7cb
1 changed files with 5 additions and 1 deletions
|
@ -46,6 +46,11 @@ EXTERN(RealEntryPoint)
|
||||||
|
|
||||||
.code32
|
.code32
|
||||||
|
|
||||||
|
/* Zero i386BootDrive and i386BootPartition */
|
||||||
|
xorl %eax,%eax
|
||||||
|
movl %eax,(_i386BootDrive)
|
||||||
|
movl %eax,(_i386BootPartition)
|
||||||
|
|
||||||
/* Store the boot drive */
|
/* Store the boot drive */
|
||||||
movb %dl,(_i386BootDrive)
|
movb %dl,(_i386BootDrive)
|
||||||
|
|
||||||
|
@ -53,7 +58,6 @@ EXTERN(RealEntryPoint)
|
||||||
movb %dh,(_i386BootPartition)
|
movb %dh,(_i386BootPartition)
|
||||||
|
|
||||||
/* GO! */
|
/* GO! */
|
||||||
xorl %eax,%eax
|
|
||||||
pushl %eax
|
pushl %eax
|
||||||
call _BootMain
|
call _BootMain
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue