diff options
author | jhb <jhb@FreeBSD.org> | 2009-03-09 17:16:29 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-03-09 17:16:29 +0000 |
commit | 6e59eb909741886dca69874a80b8e29e463957e6 (patch) | |
tree | de3bcd606d22f35302dfe3ccf5de4d0f51c0be82 /sys/boot/i386/loader | |
parent | b95f7329df6e4c18574c02802a132848e5955244 (diff) | |
download | FreeBSD-src-6e59eb909741886dca69874a80b8e29e463957e6.zip FreeBSD-src-6e59eb909741886dca69874a80b8e29e463957e6.tar.gz |
- Make it possible to disable GPT support by setting LOADER_NO_GPT_SUPPORT
in make.conf or src.conf.
- When GPT is enabled (which it is by default), use memory above 1 MB and
leave the memory from the end of the bss to the end of the 640k window
purely for the stack. The loader has grown and now it is much more
common for the heap and stack to grow into each other when both are
located in the 640k window.
PR: kern/129526
MFC after: 1 week
Diffstat (limited to 'sys/boot/i386/loader')
-rw-r--r-- | sys/boot/i386/loader/Makefile | 3 | ||||
-rw-r--r-- | sys/boot/i386/loader/main.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/boot/i386/loader/Makefile b/sys/boot/i386/loader/Makefile index cd3c951..8f3480a 100644 --- a/sys/boot/i386/loader/Makefile +++ b/sys/boot/i386/loader/Makefile @@ -51,6 +51,9 @@ CFLAGS+= -DLOADER_BZIP2_SUPPORT .if !defined(LOADER_NO_GZIP_SUPPORT) CFLAGS+= -DLOADER_GZIP_SUPPORT .endif +.if !defined(LOADER_NO_GPT_SUPPORT) +CFLAGS+= -DLOADER_GPT_SUPPORT +.endif # Always add MI sources .PATH: ${.CURDIR}/../../common diff --git a/sys/boot/i386/loader/main.c b/sys/boot/i386/loader/main.c index cac28ae..701dd3a 100644 --- a/sys/boot/i386/loader/main.c +++ b/sys/boot/i386/loader/main.c @@ -102,7 +102,7 @@ main(void) */ bios_getmem(); -#if defined(LOADER_BZIP2_SUPPORT) || defined(LOADER_FIREWIRE_SUPPORT) || defined(LOADER_ZFS_SUPPORT) +#if defined(LOADER_BZIP2_SUPPORT) || defined(LOADER_FIREWIRE_SUPPORT) || defined(LOADER_GPT_SUPPORT) || defined(LOADER_ZFS_SUPPORT) heap_top = PTOV(memtop_copyin); memtop_copyin -= 0x300000; heap_bottom = PTOV(memtop_copyin); |