This reverts commit a638acfa4cc772b42093c8bfe55669829a641293.
Not needed any more now that ZoneHigh is expanded on demand.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
src/pmm.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/src/pmm.c b/src/pmm.c
index 28b253b2d33c..640341472486 100644
--- a/src/pmm.c
+++ b/src/pmm.c
@@ -8,7 +8,6 @@
#include "config.h" // CONFIG_*
#include "malloc.h" // _malloc
#include "output.h" // dprintf
-#include "e820map.h" // struct e820entry
#include "std/pmm.h" // PMM_SIGNATURE
#include "string.h" // checksum
#include "util.h" // pmm_init
@@ -76,18 +75,6 @@ handle_pmm00(u16 *args)
break;
case 2:
data = malloc_palloc(highzone, size, align);
- if (!data && (flags & 8)) {
- /*
- * We are out of meory. So go allocate from the (big)
- * ZoneTmpHigh instead and reserve the block in the e820
- * map so the OS will not override it. That way we can
- * handle big permanent allocations without needing a big
- * ZoneHigh.
- */
- data = malloc_palloc(&ZoneTmpHigh, size, align);
- if (data)
- e820_add(data, size, E820_RESERVED);
- }
break;
case 3: {
data = malloc_palloc(lowzone, size, align);
--
2.35.1
_______________________________________________
SeaBIOS mailing list -- seabios@seabios.org
To unsubscribe send an email to seabios-leave@seabios.org