summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-10-18 02:09:46 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-10-18 02:09:46 +0000
commit90ebfcc21816f68697583b2914951c5906edf261 (patch)
tree2f6eea2b16bb46e9e7efa178578fdaf6c5990263
parentfea5a64567ed96e580698f6df8273f97c9d6cbb1 (diff)
downloadFreeBSD-src-90ebfcc21816f68697583b2914951c5906edf261.zip
FreeBSD-src-90ebfcc21816f68697583b2914951c5906edf261.tar.gz
Attempt to fix compiling problem.
Noticed by: tinderbox
-rw-r--r--sys/powerpc/aim/copyinout.c2
-rw-r--r--sys/powerpc/powerpc/copyinout.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/aim/copyinout.c b/sys/powerpc/aim/copyinout.c
index a5683eb..4c6a0ae 100644
--- a/sys/powerpc/aim/copyinout.c
+++ b/sys/powerpc/aim/copyinout.c
@@ -325,7 +325,7 @@ fuword32(const void *addr)
uint32_t
casuword32(volatile uint32_t *base, uint32_t oldval, uint32_t newval)
{
- return (casuword(base, oldval, newval));
+ return (casuword((volatile u_long *)base, oldval, newval));
}
u_long
diff --git a/sys/powerpc/powerpc/copyinout.c b/sys/powerpc/powerpc/copyinout.c
index a5683eb..4c6a0ae 100644
--- a/sys/powerpc/powerpc/copyinout.c
+++ b/sys/powerpc/powerpc/copyinout.c
@@ -325,7 +325,7 @@ fuword32(const void *addr)
uint32_t
casuword32(volatile uint32_t *base, uint32_t oldval, uint32_t newval)
{
- return (casuword(base, oldval, newval));
+ return (casuword((volatile u_long *)base, oldval, newval));
}
u_long
OpenPOWER on IntegriCloud