Skip to content

Commit

Permalink
smp: map MP tables memory range (512KB - 1KB, 512KB)
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel authored and bjoernd committed Aug 6, 2021
1 parent ca39de6 commit 054fb6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smp/mptables.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 054fb6b

Please sign in to comment.