summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-22 21:16:36 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-22 21:16:36 -0800
commite77a16e07a595de7eafa55e7fb95a1376c9827a1 (patch)
tree3182659c96276b5b3864279986346a733445160b
parentbd7a247baaeec472f7dbff56b4f38ba760651759 (diff)
downloadsyslinux-bcopyint.tar.gz
Make sure we don't use any upper-memory stack during shufflebcopyint
We want to make sure everything stays below 7C00h during the shuffle_and_boot operation.
-rw-r--r--bootsect.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootsect.inc b/bootsect.inc
index c1c850c8..afb458e3 100644
--- a/bootsect.inc
+++ b/bootsect.inc
@@ -153,6 +153,10 @@ replace_bootstrap:
pop bx ; Copy from...
pop ax ; Copy list count
+ ; Make extra sure we don't continue to use any stack
+ ; in high memory.
+ mov dword [PMESP],StackTop
+
cli
mov cx,es
mov ss,cx