summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-03 15:20:19 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-03 15:20:19 -0800
commit5c3b652f0d1fa54519fa563e53af5f57a02cd87b (patch)
tree09835cf9e21acf90817d0ed7f4e0a691ab057ba0 /core
parentbd5b09dc502c8c1022a50fada50cb8e2298365ac (diff)
downloadsyslinux-5c3b652f0d1fa54519fa563e53af5f57a02cd87b.tar.gz
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 <hpa@zytor.com>
Diffstat (limited to 'core')
-rw-r--r--core/pxelinux.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pxelinux.asm b/core/pxelinux.asm
index 651dd4c3..bf46ff64 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.