summaryrefslogtreecommitdiff
path: root/memdisk
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-06-09 11:34:00 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-06-09 11:34:00 -0700
commit87b70b32fadb057d9eabb81e4f1d57742217b590 (patch)
tree4a0caed17bbd9096c2f488602094fd97deaf73bf /memdisk
parent78edf2be58fd9106af088b8a2b09fca1d41e1dfa (diff)
downloadsyslinux-87b70b32fadb057d9eabb81e4f1d57742217b590.tar.gz
memdisk: don't use the stack before bootstrap
Under some certain circumstances, it might not be safe to use the stack as it was set up, so use a jump instead of a call to invoke the bootstrap. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'memdisk')
-rw-r--r--memdisk/memdisk16.asm3
1 files changed, 1 insertions, 2 deletions
diff --git a/memdisk/memdisk16.asm b/memdisk/memdisk16.asm
index 0c5b9973..6bafae7f 100644
--- a/memdisk/memdisk16.asm
+++ b/memdisk/memdisk16.asm
@@ -159,8 +159,7 @@ copy_cmdline:
mov gs,si
lss sp,[cs:b_sssp]
movzx esp,sp
- call far [cs:b_csip]
- int 18h ; A far return -> INT 18h
+ jmp far [cs:b_csip]
;
; We enter protected mode, set up a flat 32-bit environment, run rep movsd