pmm: Keep first page on sanitiser call in get_raw_memmap()
This commit is contained in:
parent
97c928a354
commit
bd7c3602bb
@ -573,7 +573,10 @@ struct memmap_entry *get_raw_memmap(size_t *entry_count) {
|
|||||||
mmap[i].type = our_type;
|
mmap[i].type = our_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool old_skfp = sanitiser_keep_first_page;
|
||||||
|
sanitiser_keep_first_page = true;
|
||||||
sanitise_entries(mmap, &mmap_count, false);
|
sanitise_entries(mmap, &mmap_count, false);
|
||||||
|
sanitiser_keep_first_page = old_skfp;
|
||||||
|
|
||||||
*entry_count = mmap_count;
|
*entry_count = mmap_count;
|
||||||
return mmap;
|
return mmap;
|
||||||
|
Loading…
Reference in New Issue
Block a user