diff --git a/sys/powerpc/aim/copyinout.c b/sys/powerpc/aim/copyinout.c index a5683eb7fe7b..4c6a0ae48159 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 a5683eb7fe7b..4c6a0ae48159 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