From e77a16e07a595de7eafa55e7fb95a1376c9827a1 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 22 Feb 2008 21:16:36 -0800 Subject: Make sure we don't use any upper-memory stack during shuffle We want to make sure everything stays below 7C00h during the shuffle_and_boot operation. --- bootsect.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bootsect.inc') 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 -- cgit v1.2.1