diff options
| author | David Xu <davidxu@FreeBSD.org> | 2006-08-28 02:28:15 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2006-08-28 02:28:15 +0000 |
| commit | 66e1c26dbacd64b65fa1545cb458a09c8ea46e27 (patch) | |
| tree | 7be2d51c02f47e64ee8dc4e4ec29bd1716dd3c70 /sys/powerpc | |
| parent | eb4bbba83a00d9f90f6a27be451001757b142c8b (diff) | |
Notes
Diffstat (limited to 'sys/powerpc')
| -rw-r--r-- | sys/powerpc/aim/copyinout.c | 6 | ||||
| -rw-r--r-- | sys/powerpc/powerpc/copyinout.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/powerpc/aim/copyinout.c b/sys/powerpc/aim/copyinout.c index 7fa91ceaaf11..4c19cbfe9252 100644 --- a/sys/powerpc/aim/copyinout.c +++ b/sys/powerpc/aim/copyinout.c @@ -322,6 +322,12 @@ fuword32(const void *addr) return ((int32_t)fuword(addr)); } +int32_t +casuword32(int32_t *base, int32_t oldval, int32_t newval) +{ + return (casuptr(base, oldval, newval)); +} + intptr_t casuptr(intptr_t *addr, intptr_t old, intptr_t new) { diff --git a/sys/powerpc/powerpc/copyinout.c b/sys/powerpc/powerpc/copyinout.c index 7fa91ceaaf11..4c19cbfe9252 100644 --- a/sys/powerpc/powerpc/copyinout.c +++ b/sys/powerpc/powerpc/copyinout.c @@ -322,6 +322,12 @@ fuword32(const void *addr) return ((int32_t)fuword(addr)); } +int32_t +casuword32(int32_t *base, int32_t oldval, int32_t newval) +{ + return (casuptr(base, oldval, newval)); +} + intptr_t casuptr(intptr_t *addr, intptr_t old, intptr_t new) { |
