From 5c3b652f0d1fa54519fa563e53af5f57a02cd87b Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 3 Feb 2010 15:20:19 -0800 Subject: [PATCH] pxelinux: stop using the PXE-provided stack Using the PXE-provided stack complicates things tremendously for gPXE chainloading support, plus we are hostages to the stack size set up by the PXE stack (1.5K by spec.) Use a private stack instead, as the fsc branch already does. Signed-off-by: H. Peter Anvin --- core/pxelinux.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/pxelinux.asm b/core/pxelinux.asm index 651dd4c..bf46ff6 100644 --- a/core/pxelinux.asm +++ b/core/pxelinux.asm @@ -48,7 +48,7 @@ TFTP_LARGEBLK equ (TFTP_MTU-20-8-4) ; MTU - IP hdr - UDP hdr - TFTP hdr ; Standard TFTP block size TFTP_BLOCKSIZE_LG2 equ 9 ; log2(bytes/block) TFTP_BLOCKSIZE equ (1 << TFTP_BLOCKSIZE_LG2) -%assign USE_PXE_PROVIDED_STACK 1 ; Use stack provided by PXE? +%assign USE_PXE_PROVIDED_STACK 0 ; Use stack provided by PXE? SECTOR_SHIFT equ TFTP_BLOCKSIZE_LG2 SECTOR_SIZE equ TFTP_BLOCKSIZE @@ -217,7 +217,7 @@ packet_buf_size equ $-packet_buf ; PXELINUX needs more BSS than the other derivatives; ; therefore we relocate it from 7C00h on startup. ; -StackBuf equ $ ; Base of stack if we use our own +StackBuf equ $-44 ; Base of stack if we use our own ; ; Primary entry point. -- 2.7.4