aboutsummaryrefslogtreecommitdiffstats
path: root/com32/mboot/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/mboot/mem.c')
-rw-r--r--com32/mboot/mem.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/com32/mboot/mem.c b/com32/mboot/mem.c
index e9d8bbdb..07ccb627 100644
--- a/com32/mboot/mem.c
+++ b/com32/mboot/mem.c
@@ -42,7 +42,6 @@ struct e820_entry {
uint64_t start;
uint64_t len;
uint32_t type;
- uint32_t extattr;
};
#define RANGE_ALLOC_BLOCK 128
@@ -83,8 +82,6 @@ static int mboot_scan_memory(struct AddrRangeDesc **ardp, uint32_t *dosmem)
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 {
__intcall(0x15, &ireg, &oreg);
@@ -94,12 +91,6 @@ static int mboot_scan_memory(struct AddrRangeDesc **ardp, uint32_t *dosmem)
(oreg.ecx.l < 20))
break;
- if (oreg.ecx.l < 24)
- e820buf->extattr = 1; /* Enabled, normal */
-
- if (!(e820buf->extattr & 1))
- continue;
-
if (ard_count >= ard_space) {
ard_space += RANGE_ALLOC_BLOCK;
*ardp = ard = realloc(ard, ard_space*sizeof *ard);