diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-02-22 21:16:36 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-02-22 21:16:36 -0800 |
commit | e77a16e07a595de7eafa55e7fb95a1376c9827a1 (patch) | |
tree | 3182659c96276b5b3864279986346a733445160b | |
parent | bd7a247baaeec472f7dbff56b4f38ba760651759 (diff) | |
download | syslinux-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.inc | 4 |
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 |