diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2015-09-29 08:53:38 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2015-10-15 10:52:13 -0400 |
commit | 8e385143b7656914052e386a885d8fee44593ca3 (patch) | |
tree | ee7d5cc1d8b8ad4eff80b6168f8891872ffa5d69 /src/malloc.c | |
parent | 6bcacf7d19b1dc7fcd99f55491e93514f1f19279 (diff) | |
download | seabios-8e385143b7656914052e386a885d8fee44593ca3.tar.gz |
e820: Introduce e820_remove() and avoid exporting E820_HOLE
The E820_HOLE definition is used internally in the e820 manipulation
code to remove entries from the e820 map. Introduce the e820_remove()
function so that the E820_HOLE definition does not need to be exported
from the memmap.c code.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/malloc.c')
-rw-r--r-- | src/malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc.c b/src/malloc.c index c4cb1714..5c05a8ae 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -396,7 +396,7 @@ malloc_preinit(void) dprintf(3, "malloc preinit\n"); // Don't declare any memory between 0xa0000 and 0x100000 - add_e820(BUILD_LOWRAM_END, BUILD_BIOS_ADDR-BUILD_LOWRAM_END, E820_HOLE); + e820_remove(BUILD_LOWRAM_END, BUILD_BIOS_ADDR-BUILD_LOWRAM_END); // Mark known areas as reserved. add_e820(BUILD_BIOS_ADDR, BUILD_BIOS_SIZE, E820_RESERVED); |