From 770f0c1ee49542fcbb857fa704c805a4dba67d25 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 4 Feb 2010 11:18:36 -0800 Subject: gPXE: change heap size to 512K Change heap size from 128K to 512K to accommodate larger TCP windows. Signed-off-by: H. Peter Anvin --- gpxe/gpxe.diff | 16 ++++++++++++++++ gpxe/src/core/malloc.c | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/gpxe/gpxe.diff b/gpxe/gpxe.diff index 16ab1c94..57e5f416 100644 --- a/gpxe/gpxe.diff +++ b/gpxe/gpxe.diff @@ -55,3 +55,19 @@ index 7ae7eab..9dc39fc 100644 /** * Path MTU +diff --git a/gpxe/src/core/malloc.c b/gpxe/src/core/malloc.c +index 8b0bc24..0153748 100644 +--- a/gpxe/src/core/malloc.c ++++ b/gpxe/src/core/malloc.c +@@ -78,9 +78,9 @@ size_t freemem; + /** + * Heap size + * +- * Currently fixed at 128kB. ++ * Currently fixed at 512kB. + */ +-#define HEAP_SIZE ( 128 * 1024 ) ++#define HEAP_SIZE ( 512 * 1024 ) + + /** The heap itself */ + static char heap[HEAP_SIZE] __attribute__ (( aligned ( __alignof__(void *) ))); diff --git a/gpxe/src/core/malloc.c b/gpxe/src/core/malloc.c index 8b0bc24d..01537483 100644 --- a/gpxe/src/core/malloc.c +++ b/gpxe/src/core/malloc.c @@ -78,9 +78,9 @@ size_t freemem; /** * Heap size * - * Currently fixed at 128kB. + * Currently fixed at 512kB. */ -#define HEAP_SIZE ( 128 * 1024 ) +#define HEAP_SIZE ( 512 * 1024 ) /** The heap itself */ static char heap[HEAP_SIZE] __attribute__ (( aligned ( __alignof__(void *) ))); -- cgit v1.2.1 From 88c00aca310b7bade07833d3021cae9da266eae7 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 5 Feb 2010 16:41:02 -0800 Subject: pxelinux: call reset_pxe before local boot Reset the PXE configuration before we do a local boot. Signed-off-by: H. Peter Anvin --- core/pxelinux.asm | 1 + 1 file changed, 1 insertion(+) diff --git a/core/pxelinux.asm b/core/pxelinux.asm index 01159f16..6ad15845 100644 --- a/core/pxelinux.asm +++ b/core/pxelinux.asm @@ -901,6 +901,7 @@ local_boot: mov si,localboot_msg call writestr_early ; Restore the environment we were called with + call reset_pxe call cleanup_hardware lss sp,[InitStack] pop gs -- cgit v1.2.1