musl/arch/sh
Rich Felker 3366a99b17 switch sh port's __unmapself to generic version when running on sh2/nommu
due to the way the interrupt and syscall trap mechanism works,
userspace on sh2 must never set the stack pointer to an invalid value.
thus, the approach used on most archs, where __unmapself executes with
no stack for the interval between SYS_munmap and SYS_exit, is not
viable on sh2.

in order not to pessimize sh3/sh4, the sh asm version of __unmapself
is not removed. instead it's renamed and redirected through code that
calls either the generic (safe) __unmapself or the sh3/sh4 asm,
depending on compile-time and run-time conditions.
2015-06-16 14:55:06 +00:00
..
bits fix sh jmp_buf size to match ABI 2015-04-27 20:03:28 -04:00
src switch sh port's __unmapself to generic version when running on sh2/nommu 2015-06-16 14:55:06 +00:00
atomic.h inline llsc atomics when building for sh4a 2015-05-19 00:42:07 -04:00
crt_arch.h add .text section directive to all crt_arch.h files missing it 2015-05-22 01:50:05 -04:00
pthread_arch.h rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00
reloc.h fix ldso name for sh-nofpu subarch 2015-04-24 13:05:21 -04:00
syscall_arch.h rename superh port to "sh" for consistency 2014-02-27 22:03:25 -05:00