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