NetBSD/sys/arch/arm/conf
thorpej 165d4e6d83 Rewrite the ARM mutex implementation to be of the simple-mutex variety.
Because pre-v6 ARM lacks support for an atomic compare-and-swap, we
implement _lock_cas() as a restartable atomic squence that is checked
in the IRQ handler right before AST processing.  (This is safe because,
for all practical purposes, there are no SMP pre-v6 ARM systems.)

This can serve as a model for other non-MP platforms that lack the
necessary atomic operations for mutexes (SuperH, for example).

Upshots of this change:
- kmutex_t is now down to 8 bytes on ARM; about as good as we can get.
- ARM2 systems don't have to trap and emulate SWP or SWPB for mutexes.

The acorn26 port is not updated by this commit to do the LOCK_CAS_CHECK.
That is left as an exercise for the port maintainer.

Reviewed and tested by Matt Thomas.
2007-03-09 19:21:57 +00:00
..
files.arm Rewrite the ARM mutex implementation to be of the simple-mutex variety. 2007-03-09 19:21:57 +00:00
files.footbridge
files.sa11x0 move devices entry to MD/conf/files.* 2007-01-08 16:21:45 +00:00
kern.ldscript.head
kern.ldscript.tail
majors.arm32 s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
Makefile.arm src/sys/arch/arm32 is long gone, so stop referring to it. 2007-03-04 12:08:58 +00:00