summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDimitry Andric <dim@cvs.openbsd.org>2006-04-28 13:00:52 +0000
committerDimitry Andric <dim@cvs.openbsd.org>2006-04-28 13:00:52 +0000
commit268cbec918fc272826d8a432da53995a19618fc0 (patch)
tree78e1fd6cd69c1a41c24c29681c726e7e90e3a6a1 /sys
parent2bb65054cf497712f5fbe17a27c028f67b503a9c (diff)
Fix cast warning in sys/arch/i386/i386/acpi_machdep.c, caused by recent PAE
checkins which change paddr_t for i386 into an unsigned long long. ok marco
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/acpi_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/acpi_machdep.c b/sys/arch/i386/i386/acpi_machdep.c
index 84bb20ead70..2c984633267 100644
--- a/sys/arch/i386/i386/acpi_machdep.c
+++ b/sys/arch/i386/i386/acpi_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi_machdep.c,v 1.3 2006/02/20 05:14:09 marco Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.4 2006/04/28 13:00:51 dim Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -57,7 +57,7 @@ acpi_map(paddr_t pa, size_t len, struct acpi_mem_map *handle)
return (ENOMEM);
handle->baseva = va;
- handle->va = (u_int8_t *)(va + (pa & PGOFSET));
+ handle->va = (u_int8_t *)(va + (u_long)(pa & PGOFSET));
handle->vsize = endpa - pgpa;
handle->pa = pa;