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 ca1a00c..31b2102 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