From 29847d4b884915e80262e4b62ca3b0dd7428d38b Mon Sep 17 00:00:00 2001 From: njl Date: Mon, 11 Aug 2003 05:54:31 +0000 Subject: [PATCH] Fix AcpiOsMapMemory to match the function definition. Don't use UINT32 as a cast for a pointer. Change has been submitted to the vendor. Pointed out by: marcel, obrien --- sys/contrib/dev/acpica/osunixxf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/contrib/dev/acpica/osunixxf.c b/sys/contrib/dev/acpica/osunixxf.c index ecb72288cef6..993eb5f2bb09 100644 --- a/sys/contrib/dev/acpica/osunixxf.c +++ b/sys/contrib/dev/acpica/osunixxf.c @@ -452,10 +452,10 @@ AcpiOsGetLine ( ACPI_STATUS AcpiOsMapMemory ( ACPI_PHYSICAL_ADDRESS where, - UINT32 length, + ACPI_SIZE length, void **there) { - *there = (void *) (UINT32) where; + *there = (void *) (uintptr_t) where; return AE_OK; }