diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-06-21 11:43:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-06-21 11:43:32 -0400 |
commit | b8d7a4797d06c9ff69712a3b436d2e0458ac7a51 (patch) | |
tree | d6ea60ad3f48bd89a0fc5377ac2f78e0920f73a2 /src/memmap.c | |
parent | fe42eb2e1da67bb41509c359612d5b79fb616599 (diff) | |
download | seabios-b8d7a4797d06c9ff69712a3b436d2e0458ac7a51.tar.gz |
Make 0xa0000 - 0x10000 a "gap" in the e820 map.
Declaring memory between 0xa0000 - 0x10000 confuses windows, so don't
do that.
Add capability to remove mappings in the memory mapping code.
Diffstat (limited to 'src/memmap.c')
-rw-r--r-- | src/memmap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/memmap.c b/src/memmap.c index 66fba097..279e6261 100644 --- a/src/memmap.c +++ b/src/memmap.c @@ -91,8 +91,10 @@ add_e820(u64 start, u64 size, u32 type) remove_e820(i); } } - insert_e820(i, start, size, type); - i++; + if (type != E820_HOLE) { + insert_e820(i, start, size, type); + i++; + } // Remove all existing items that are completely overlapped. while (i<e820_count) { e = &e820_list[i]; |