diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-09-22 22:08:52 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-09-22 22:08:52 +0000 |
commit | 7ae99f80b6661760c5de3edd330b279f04b092a2 (patch) | |
tree | 533dff9d5801d8e7cb6c552f39761067180853b7 /sys/dev/acpica | |
parent | 02fac928ab687607786801cdf33f100c70cc6a2e (diff) | |
download | src-7ae99f80b6661760c5de3edd330b279f04b092a2.tar.gz src-7ae99f80b6661760c5de3edd330b279f04b092a2.zip |
pmap_unmapdev/bios: Accept a pointer instead of a vm_offset_t.
This matches the return type of pmap_mapdev/bios.
Reviewed by: kib, markj
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D36548
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/Osd/OsdMemory.c | 6 | ||||
-rw-r--r-- | sys/dev/acpica/acpi_apei.c | 3 | ||||
-rw-r--r-- | sys/dev/acpica/acpi_pxm.c | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/acpica/Osd/OsdMemory.c b/sys/dev/acpica/Osd/OsdMemory.c index b806642a61fc..599065e5c653 100644 --- a/sys/dev/acpica/Osd/OsdMemory.c +++ b/sys/dev/acpica/Osd/OsdMemory.c @@ -63,7 +63,7 @@ AcpiOsMapMemory(ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_SIZE Length) void AcpiOsUnmapMemory(void *LogicalAddress, ACPI_SIZE Length) { - pmap_unmapbios((vm_offset_t)LogicalAddress, Length); + pmap_unmapbios(LogicalAddress, Length); } ACPI_STATUS @@ -110,7 +110,7 @@ AcpiOsReadMemory(ACPI_PHYSICAL_ADDRESS Address, UINT64 *Value, UINT32 Width) break; } - pmap_unmapdev((vm_offset_t)LogicalAddress, Width / 8); + pmap_unmapdev(LogicalAddress, Width / 8); return (AE_OK); } @@ -139,7 +139,7 @@ AcpiOsWriteMemory(ACPI_PHYSICAL_ADDRESS Address, UINT64 Value, UINT32 Width) break; } - pmap_unmapdev((vm_offset_t)LogicalAddress, Width / 8); + pmap_unmapdev(LogicalAddress, Width / 8); return (AE_OK); } diff --git a/sys/dev/acpica/acpi_apei.c b/sys/dev/acpica/acpi_apei.c index 5c442d59972d..9923b2ff9247 100644 --- a/sys/dev/acpica/acpi_apei.c +++ b/sys/dev/acpica/acpi_apei.c @@ -787,8 +787,7 @@ apei_detach(device_t dev) free(ge->copybuf, M_DEVBUF); } if (ge->buf) { - pmap_unmapdev((vm_offset_t)ge->buf, - ge->v1.ErrorBlockLength); + pmap_unmapdev(ge->buf, ge->v1.ErrorBlockLength); } free(ge, M_DEVBUF); } diff --git a/sys/dev/acpica/acpi_pxm.c b/sys/dev/acpica/acpi_pxm.c index 808886d744f0..03624f00e2f6 100644 --- a/sys/dev/acpica/acpi_pxm.c +++ b/sys/dev/acpica/acpi_pxm.c @@ -666,7 +666,7 @@ acpi_pxm_set_cpu_locality(void) pc->pc_domain); } /* XXXMJ the page is leaked. */ - pmap_unmapbios((vm_offset_t)cpus, sizeof(*cpus) * max_cpus); + pmap_unmapbios(cpus, sizeof(*cpus) * max_cpus); srat_physaddr = 0; cpus = NULL; } |