Skip to content

Commit

Permalink
acpica: use simpler api for mapping
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel committed Sep 11, 2023
1 parent 5299890 commit 3950e4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/acpi/acpica/osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,7 @@ void *AcpiOsMapMemory(ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_SIZE Length) {
void *_va;

if (!frame) {
_va = vmap_kern(mfn_to_virt_map(mfn), mfn, PAGE_ORDER_4K, L4_PROT, L3_PROT,
L2_PROT, L1_PROT);
_va = vmap_4k(mfn_to_virt_map(mfn), mfn, L1_PROT);
if (!_va) {
spin_unlock(&map_lock);
return NULL;
Expand Down

0 comments on commit 3950e4a

Please sign in to comment.