diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-01-12 21:11:13 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-01-12 21:11:13 +0000 |
commit | 8d8f88eeb53bec32d90502aeaef89e8b487972e7 (patch) | |
tree | 2b34b72870c104ce25c2f0c92f31f8d8eca87b6a /sys/arch/hppa/include | |
parent | 20be7b702fa19dd2a91c249516182353ed26b97e (diff) |
Provide a specific rw_cas() function for MP kernels; stolen from m88k.
ok jsing@, deraadt@
Diffstat (limited to 'sys/arch/hppa/include')
-rw-r--r-- | sys/arch/hppa/include/lock.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/lock.h b/sys/arch/hppa/include/lock.h index 48430c7163f..5d21e8cb8ea 100644 --- a/sys/arch/hppa/include/lock.h +++ b/sys/arch/hppa/include/lock.h @@ -1,4 +1,4 @@ -/* $OpenBSD: lock.h,v 1.3 2011/01/12 21:07:12 kettenis Exp $ */ +/* $OpenBSD: lock.h,v 1.4 2011/01/12 21:11:12 kettenis Exp $ */ /* public domain */ @@ -47,4 +47,9 @@ __cpu_simple_unlock(__cpu_simple_lock_t *l) *l = __SIMPLELOCK_UNLOCKED; } +#if defined(_KERNEL) && defined(MULTIPROCESSOR) +int rw_cas_hppa(volatile unsigned long *, unsigned long, unsigned long); +#define rw_cas rw_cas_hppa +#endif + #endif /* _HPPA_LOCK_H_ */ |