diff options
| author | H. Peter Anvin <hpa@zytor.com> | 2009-04-01 13:20:24 -0700 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2009-04-01 13:20:24 -0700 |
| commit | 175d813554b69e2883f5bd5eec5eb86a8a0118b7 (patch) | |
| tree | e32553008cb2ab07698918cc8af9276098c8b5d2 /com32/lib/syslinux/memmap.c | |
| parent | 62d83458e5dc64c3c52372953ebbf79a61054cd2 (diff) | |
| download | syslinux-175d813554b69e2883f5bd5eec5eb86a8a0118b7.tar.gz | |
com32: make memory beyond the core HighMem available to malloc
Impact: should deal with memory holes more gracefully
Right now, if we find a memory hole, we simply don't use the memory
beyond that point. This makes it possible for com32 modules to
use that memory. After this, we should be able to add relocation
support to allow loading when the memory at 1 MB is unavailable.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/syslinux/memmap.c')
| -rw-r--r-- | com32/lib/syslinux/memmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/com32/lib/syslinux/memmap.c b/com32/lib/syslinux/memmap.c index 105c9473..4ccddd27 100644 --- a/com32/lib/syslinux/memmap.c +++ b/com32/lib/syslinux/memmap.c @@ -79,6 +79,7 @@ struct syslinux_memmap *syslinux_memory_map(void) ireg.es = SEG(e820buf); ireg.edi.w[0] = OFFS(e820buf); memset(e820buf, 0, sizeof *e820buf); + /* Set this in case the BIOS doesn't, but doesn't change %ecx to match. */ e820buf->extattr = 1; do { |
