From 8258d2500c2bd00f7443ad10f3591ffed50cb0fe Mon Sep 17 00:00:00 2001 From: grehan Date: Wed, 18 Oct 2006 19:56:20 +0000 Subject: [PATCH] Fix remaining compile error. --- sys/powerpc/aim/copyinout.c | 2 +- sys/powerpc/powerpc/copyinout.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/powerpc/aim/copyinout.c b/sys/powerpc/aim/copyinout.c index 4c6a0ae48159..4e9f77746f1a 100644 --- a/sys/powerpc/aim/copyinout.c +++ b/sys/powerpc/aim/copyinout.c @@ -348,7 +348,7 @@ casuword(volatile u_long *addr, u_long old, u_long new) } val = *p; - (void) atomic_cmpset_32(p, old, new); + (void) atomic_cmpset_32((volatile uint32_t *)p, old, new); td->td_pcb->pcb_onfault = NULL; diff --git a/sys/powerpc/powerpc/copyinout.c b/sys/powerpc/powerpc/copyinout.c index 4c6a0ae48159..4e9f77746f1a 100644 --- a/sys/powerpc/powerpc/copyinout.c +++ b/sys/powerpc/powerpc/copyinout.c @@ -348,7 +348,7 @@ casuword(volatile u_long *addr, u_long old, u_long new) } val = *p; - (void) atomic_cmpset_32(p, old, new); + (void) atomic_cmpset_32((volatile uint32_t *)p, old, new); td->td_pcb->pcb_onfault = NULL;