From: Michael Brown Date: Mon, 11 Feb 2008 15:06:26 +0000 (+0000) Subject: Use internal 16-bit stack for added safety. X-Git-Tag: v0.9.3~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8a0b5f682561bf1e78aef64b16c05cc9ee70902;p=thirdparty%2Fipxe.git Use internal 16-bit stack for added safety. --- diff --git a/src/arch/i386/prefix/pxeprefix.S b/src/arch/i386/prefix/pxeprefix.S index ca1a00c9e..31b2102f6 100644 --- a/src/arch/i386/prefix/pxeprefix.S +++ b/src/arch/i386/prefix/pxeprefix.S @@ -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