aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-04 11:18:36 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-05 16:41:52 -0800
commit770f0c1ee49542fcbb857fa704c805a4dba67d25 (patch)
treedc4a9724cb84b6bb9b7988e7db1653ed6a7048ad
parent3fc4c91dff9396a901d6c5056bf9828d0943aaf8 (diff)
downloadsyslinux.git-770f0c1ee49542fcbb857fa704c805a4dba67d25.tar.gz
syslinux.git-770f0c1ee49542fcbb857fa704c805a4dba67d25.tar.xz
syslinux.git-770f0c1ee49542fcbb857fa704c805a4dba67d25.zip
gPXE: change heap size to 512K
Change heap size from 128K to 512K to accommodate larger TCP windows. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--gpxe/gpxe.diff16
-rw-r--r--gpxe/src/core/malloc.c4
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 *) )));