summaryrefslogtreecommitdiff
path: root/stand/uboot
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-03-14 02:35:49 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-03-14 02:35:49 +0000
commit0cb59ea75a45927d84230a3e649b301eaf556f7e (patch)
tree0397b793ae68547baaa482b96b5221ea50f1a235 /stand/uboot
parentae9b401786f5dc55255b46e031290ae1db937a33 (diff)
downloadsrc-test2-0cb59ea75a45927d84230a3e649b301eaf556f7e.tar.gz
src-test2-0cb59ea75a45927d84230a3e649b301eaf556f7e.zip
Notes
Diffstat (limited to 'stand/uboot')
-rw-r--r--stand/uboot/common/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/stand/uboot/common/main.c b/stand/uboot/common/main.c
index 8ae1d2666239..8ad33f40c954 100644
--- a/stand/uboot/common/main.c
+++ b/stand/uboot/common/main.c
@@ -41,6 +41,10 @@ __FBSDID("$FreeBSD$");
#define nitems(x) (sizeof((x)) / sizeof((x)[0]))
#endif
+#ifndef HEAP_SIZE
+#define HEAP_SIZE (1 * 1024 * 1024)
+#endif
+
struct uboot_devdesc currdev;
struct arch_switch archsw; /* MI/MD interface boundary */
int devs_no;
@@ -421,7 +425,7 @@ main(int argc, char **argv)
* of our bss and the bottom of the u-boot stack to avoid overlap.
*/
uboot_heap_start = round_page((uintptr_t)end);
- uboot_heap_end = uboot_heap_start + 512 * 1024;
+ uboot_heap_end = uboot_heap_start + HEAP_SIZE;
setheap((void *)uboot_heap_start, (void *)uboot_heap_end);
/*