summaryrefslogtreecommitdiff
path: root/comboot.inc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-08-17 14:24:43 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-08-17 14:24:43 -0700
commit5f7ba5958af6985fdb7b1f1d86c92691786544a1 (patch)
tree78b3eecb5ab13e04c5f06dfb047e7ac42f9e24dc /comboot.inc
parentff17500411ecf1fe1697e3d6f114e14b4da4ba60 (diff)
downloadsyslinux-5f7ba5958af6985fdb7b1f1d86c92691786544a1.tar.gz
When exiting a COMBOOT/COM32 module, reset the stack instead of saving
and restoring it. The former option left crap on the stack.
Diffstat (limited to 'comboot.inc')
-rw-r--r--comboot.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/comboot.inc b/comboot.inc
index eaeab5c6..91a7da94 100644
--- a/comboot.inc
+++ b/comboot.inc
@@ -132,9 +132,6 @@ is_comboot_image:
call getfssec
; And invoke the program...
- mov [SavedSSSP],sp
- mov [SavedSSSP+2],ss ; Save away SS:SP
-
mov ax,es
mov ds,ax
mov ss,ax
@@ -213,7 +210,7 @@ comboot_exit_special:
xor dx,dx
mov ds,dx
mov es,dx
- lss sp,[SavedSSSP]
+ RESET_STACK
sti
cld
call adjust_screen ; The COMBOOT program might have changed the screen