]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Use internal 16-bit stack for added safety.
authorMichael Brown <mcb30@etherboot.org>
Mon, 11 Feb 2008 15:06:26 +0000 (15:06 +0000)
committerMichael Brown <mcb30@etherboot.org>
Mon, 11 Feb 2008 15:06:26 +0000 (15:06 +0000)
src/arch/i386/prefix/pxeprefix.S

index ca1a00c9e9bca9b07e225538821f307a827296e3..31b2102f64d511a9ccc69efab8f644f799f48c46 100644 (file)
@@ -700,6 +700,10 @@ run_etherboot:
        /* Install Etherboot */
        call    install
 
+       /* Set up real-mode stack */
+       movw    %bx, %ss
+       movw    $_estack16, %sp
+
 #ifdef PXELOADER_KEEP_UNDI
        /* Copy our undi_device structure to the preloaded_undi variable */
        movw    %bx, %es