linux/arch/frv/lib
Peter Zijlstra b0d8003ef4 frv: Rewrite atomic implementation
Mostly complete rewrite of the FRV atomic implementation, instead of
using assembly files, use inline assembler.

The out-of-line CONFIG option makes a bit of a mess of things, but a
little CPP trickery gets that done too.

FRV already had the atomic logic ops but under a non standard name,
the reimplementation provides the generic names and provides the
intermediate form required for the bitops implementation.

The slightly inconsistent __atomic32_fetch_##op naming is because
__atomic_fetch_##op conlicts with GCC builtin functions.

The 64bit atomic ops use the inline assembly %Ln construct to access
the low word register (r+1), afaik this construct was not previously
used in the kernel and is completely undocumented, but I found it in
the FRV GCC code and it seems to work.

FRV had a non-standard definition of atomic_{clear,set}_mask() which
would work types other than atomic_t, the one user relying on that
(arch/frv/kernel/dma.c) got converted to use the new intermediate
form.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2015-07-27 14:06:23 +02:00
..
__ashldi3.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
__ashrdi3.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
__lshrdi3.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
__muldi3.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
__negdi2.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
__ucmpdi2.S [PATCH] frv: implement and export various things required by modules 2006-01-08 20:13:36 -08:00
atomic64-ops.S frv: Rewrite atomic implementation 2015-07-27 14:06:23 +02:00
atomic-lib.c frv: Rewrite atomic implementation 2015-07-27 14:06:23 +02:00
atomic-ops.S frv: Rewrite atomic implementation 2015-07-27 14:06:23 +02:00
cache.S trivial: fix typos "man[ae]g?ment" -> "management" 2009-09-21 15:14:56 +02:00
checksum.c [NET]: FRV checksum annotations. 2006-12-02 21:23:03 -08:00
insl_ns.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
insl_sw.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile frv: Rewrite atomic implementation 2015-07-27 14:06:23 +02:00
memcpy.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
memset.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
outsl_ns.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
outsl_sw.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00