mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Fix for MS's idiocy on a Win98 boot disk I have.
Apparently they use ESP without initializing anything more than SP. svn path=/trunk/; revision=3677
This commit is contained in:
parent
8cfdeb8c6b
commit
39204fdedc
1 changed files with 9 additions and 0 deletions
|
@ -155,6 +155,15 @@ inrmode:
|
|||
movw %ax,%fs
|
||||
movw %ax,%gs
|
||||
movw %ax,%ss
|
||||
|
||||
/* Clear out the high 16-bits of ESP */
|
||||
/* This is needed because I have a stupid */
|
||||
/* MS-Win98 boot disk that hangs if there is */
|
||||
/* anything other than 0x0000 in the high */
|
||||
/* 16-bits of ESP. Even though real-mode */
|
||||
/* code should only use SP and not ESP. */
|
||||
xorl %esp,%esp
|
||||
|
||||
movw stack16,%sp
|
||||
|
||||
/* Put the return address back onto the stack */
|
||||
|
|
Loading…
Reference in a new issue