summaryrefslogtreecommitdiff
path: root/com32.inc
diff options
context:
space:
mode:
Diffstat (limited to 'com32.inc')
-rw-r--r--com32.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32.inc b/com32.inc
index 220c9d7b..ac513593 100644
--- a/com32.inc
+++ b/com32.inc
@@ -57,7 +57,6 @@ is_com32_image:
sub cx,si
fs rep movsb
- call highmemsize ; We need the high memory size...
call comboot_setup_api ; Set up the COMBOOT-style API
mov edi,pm_entry ; Load address
@@ -115,9 +114,10 @@ com32_enter_pm:
;
com32_call_start:
;
- ; Point the stack to the end of high memory
+ ; Point the stack to the end of (permitted) high memory
;
- mov esp,[word HighMemSize]
+ mov esp,[word HighMemRsvd]
+ xor sp,sp ; Align to a 64K boundary
;
; Set up the protmode IDT and the interrupt jump buffers