]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[nbiprefix] Set up real-mode stack before jumping to .text16
authorMichael Brown <mcb30@ipxe.org>
Fri, 8 Mar 2013 13:23:58 +0000 (13:23 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 8 Mar 2013 17:41:51 +0000 (17:41 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/prefix/nbiprefix.S

index 20d224d69b724aa00bc5f14260a362476bbecf25..06e7df5b747bc791e57ea3608cfb2c2ace61807a 100644 (file)
@@ -54,6 +54,10 @@ _nbi_start:
        /* Install iPXE */
        call    install
 
+       /* Set up real-mode stack */
+       movw    %bx, %ss
+       movw    $_estack16, %sp
+
        /* Jump to .text16 segment */
        pushw   %ax
        pushw   $1f