summaryrefslogtreecommitdiff
path: root/bootsect.inc
diff options
context:
space:
mode:
Diffstat (limited to 'bootsect.inc')
-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