musl/arch/sh
Rich Felker 61b1e75f7d overhaul sh atomics for new atomics framework, add j-core cas.l backend
sh needs runtime-selected atomic backends since there are a number of
supported models that use non-forwards-compatible (non-smp-compatible)
atomic mechanisms. previously, the code paths for this were highly
inefficient since they involved C function calls with multiple
branches in the callee and heavy spills in the caller. the new code
performs calls the runtime-selected asm fragment from inline asm with
extremely minimal clobbers, rather than using a function call.

for the sh4a case where the atomic mechanism is known and there is no
forward-compatibility issue, the movli.l and movco.l instructions are
provided as a_ll and a_sc, allowing the new shared atomic.h to
generate efficient inline versions of all the basic atomic operations
without needing a cas loop.
2016-01-21 19:43:04 +00:00
..
bits fix sh jmp_buf size to match ABI 2015-04-27 20:03:28 -04:00
src overhaul sh atomics for new atomics framework, add j-core cas.l backend 2016-01-21 19:43:04 +00:00
atomic_arch.h overhaul sh atomics for new atomics framework, add j-core cas.l backend 2016-01-21 19:43:04 +00:00
crt_arch.h generalize sh entry point asm not to assume call dests fit in 12 bits 2015-11-02 18:11:36 -05:00
ksigaction.h fix signal return for sh/fdpic 2015-09-23 18:33:49 +00:00
pthread_arch.h properly access mcontext_t program counter in cancellation handler 2015-11-02 12:41:49 -05:00
reloc.h fix dynamic loader library mapping for nommu systems 2015-11-11 17:40:27 -05:00
syscall_arch.h switch to using trap number 31 for syscalls on sh 2015-06-16 15:25:02 +00:00