Skip to content

Commit 054fb6b

Browse files
wipawelbjoernd
authored andcommitted
smp: map MP tables memory range (512KB - 1KB, 512KB)
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
1 parent ca39de6 commit 054fb6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smp/mptables.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ static mpf_t *get_mpf_addr(void) {
8585
if (ptr)
8686
return ptr;
8787

88-
sysm_addr = paddr_to_virt_kern(get_memory_range_end(KB(512)));
89-
ptr = find_mpf(sysm_addr - KB(1), sysm_addr);
88+
sysm_addr = kmap_4k(paddr_to_mfn(get_memory_range_end(KB(512)) - KB(1)), L1_PROT_RO);
89+
ptr = find_mpf(sysm_addr, sysm_addr + KB(1));
9090
if (ptr)
9191
return ptr;
9292

0 commit comments

Comments
 (0)