From 054fb6b82c917e68f65f550fc896e85b157e1a0d Mon Sep 17 00:00:00 2001 From: Pawel Wieczorkiewicz Date: Fri, 6 Aug 2021 11:13:33 +0200 Subject: [PATCH] smp: map MP tables memory range (512KB - 1KB, 512KB) Signed-off-by: Pawel Wieczorkiewicz --- smp/mptables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smp/mptables.c b/smp/mptables.c index b1485d89..f708ef82 100644 --- a/smp/mptables.c +++ b/smp/mptables.c @@ -85,8 +85,8 @@ static mpf_t *get_mpf_addr(void) { if (ptr) return ptr; - sysm_addr = paddr_to_virt_kern(get_memory_range_end(KB(512))); - ptr = find_mpf(sysm_addr - KB(1), sysm_addr); + sysm_addr = kmap_4k(paddr_to_mfn(get_memory_range_end(KB(512)) - KB(1)), L1_PROT_RO); + ptr = find_mpf(sysm_addr, sysm_addr + KB(1)); if (ptr) return ptr;