linux/arch/frv/kernel
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
..
asm-offsets.c frv: Remove signal translation and exec_domain 2015-04-12 20:58:24 +02:00
break.S
cmode.S
debug-stub.c
dma.c frv: Rewrite atomic implementation 2015-07-27 14:06:23 +02:00
entry-table.S
entry.S
frv_ksyms.c frv: Rewrite atomic implementation 2015-07-27 14:06:23 +02:00
futex.c
gdb-io.c
gdb-io.h
gdb-stub.c
head-mmu-fr451.S
head-uc-fr401.S
head-uc-fr451.S
head-uc-fr555.S
head.inc
head.S
irq-mb93091.c frv: remove deprecated IRQF_DISABLED 2014-10-09 22:26:03 -04:00
irq-mb93093.c frv: remove deprecated IRQF_DISABLED 2014-10-09 22:26:03 -04:00
irq-mb93493.c frv: remove deprecated IRQF_DISABLED 2014-10-09 22:26:03 -04:00
irq.c
local64.h
local.h
Makefile
module.c
pm-mb93093.c
pm.c
process.c
ptrace.c
setup.c frv: remove unused cpuinfo_frv and friends to fix future build error 2014-10-09 22:26:03 -04:00
signal.c Merge branch 'exec_domain_rip_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/misc 2015-04-15 13:53:55 -07:00
sleep.S
switch_to.S
sys_frv.c
sysctl.c
time.c frv: remove deprecated IRQF_DISABLED 2014-10-09 22:26:03 -04:00
traps.c
uaccess.c
vmlinux.lds.S