From 48be49f80612c04d87dba2697fc5e4d6dff6287a Mon Sep 17 00:00:00 2001 From: mintsuki Date: Mon, 26 Sep 2022 02:42:32 +0200 Subject: [PATCH] pmm: Keep first page on sanitiser call in get_raw_memmap() --- common/mm/pmm.s2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/mm/pmm.s2.c b/common/mm/pmm.s2.c index 24f528ba..492cb39c 100644 --- a/common/mm/pmm.s2.c +++ b/common/mm/pmm.s2.c @@ -573,7 +573,10 @@ struct memmap_entry *get_raw_memmap(size_t *entry_count) { mmap[i].type = our_type; } + bool old_skfp = sanitiser_keep_first_page; + sanitiser_keep_first_page = true; sanitise_entries(mmap, &mmap_count, false); + sanitiser_keep_first_page = old_skfp; *entry_count = mmap_count; return mmap;