Limit the size of the real-mode stack. This should limit the amount
of memory needed for a relocated real-mode code.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
section .rodata align=16
section .data align=16
section .bss align=16
+ section .stack align=16 nobits
+stack resb 512
+stack_end equ $
;; -----------------------------------------------------------------------
;; Kernel image header
rep movsd
mov ds,ax
mov ss,ax
- xor esp,esp ; Stack at top of 64K segment
+ mov esp,stack_end
jmp MY_CS:.next
.next: