diff --git a/libc/intrin/mman.greg.c b/libc/intrin/mman.greg.c index cf872aa22..6e0cc8c47 100644 --- a/libc/intrin/mman.greg.c +++ b/libc/intrin/mman.greg.c @@ -74,10 +74,7 @@ noasan textreal uint64_t *__get_virtual(struct mman *mm, uint64_t *t, if (!(*e & PAGE_V)) { if (!maketables) return NULL; if (!(p = __new_page(mm))) return NULL; - if (mm->use_bane) - __clear_page(BANE + p); - else - __clear_page(p); + __clear_page(BANE + p); *e = p | PAGE_V | PAGE_RW; } t = (uint64_t *)(BANE + (*e & PAGE_TA)); @@ -127,12 +124,10 @@ static noasan textreal void __invert_memory(struct mman *mm, uint64_t *pml4t) { *m = p | PAGE_V | PAGE_RW; } } - mm->use_bane = 1; } } noasan textreal void __setup_mman(struct mman *mm, uint64_t *pml4t) { - mm->use_bane = 0; __normalize_e820(mm); __invert_memory(mm, pml4t); } diff --git a/libc/runtime/mman.internal.h b/libc/runtime/mman.internal.h index 3b3a54777..8c582a52d 100644 --- a/libc/runtime/mman.internal.h +++ b/libc/runtime/mman.internal.h @@ -17,7 +17,6 @@ struct mman { unsigned char pc_drive_last_head; /* 0x1d20 */ unsigned char pc_drive; /* 0x1d21 */ char bad_idt[6]; /* 0x1d22 */ - unsigned use_bane : 1, : 31; /* 0x1d28 */ }; COSMOPOLITAN_C_END_