Use internal real-mode stack from non-returnable prefixes
[people/sha0/gpxe.git] / src / arch / i386 / prefix / dskprefix.S
index 9b1ebaa..1a48716 100644 (file)
@@ -350,6 +350,10 @@ msg1end:
 start_runtime:
        call    install
 
+       /* Set up real-mode stack */
+       movw    %bx, %ss
+       movw    $_estack16, %sp
+
        /* Jump to .text16 segment */
        pushw   %ax
        pushw   $1f