musl/arch
Rich Felker 10d0268ccf switch to using trap number 31 for syscalls on sh
nominally the low bits of the trap number on sh are the number of
syscall arguments, but they have never been used by the kernel, and
some code making syscalls does not even know the number of arguments
and needs to pass an arbitrary high number anyway.

sh3/sh4 traditionally used the trap range 16-31 for syscalls, but part
of this range overlapped with hardware exceptions/interrupts on sh2
hardware, so an incompatible range 32-47 was chosen for sh2.

using trap number 31 everywhere, since it's in the existing sh3/sh4
range and does not conflict with sh2 hardware, is a proposed
unification of the kernel syscall convention that will allow binaries
to be shared between sh2 and sh3/sh4. if this is not accepted into the
kernel, we can refit the sh2 target with runtime selection mechanisms
for the trap number, but doing so would be invasive and would entail
non-trivial overhead.
2015-06-16 15:25:02 +00:00
..
aarch64 add .text section directive to all crt_arch.h files missing it 2015-05-22 01:50:05 -04:00
arm arm: add vdso support 2015-06-14 04:23:20 +00:00
i386 fix inconsistency in a_and and a_or argument types on x86[_64] 2015-05-20 00:17:35 -04:00
microblaze add .text section directive to all crt_arch.h files missing it 2015-05-22 01:50:05 -04:00
mips fix stack alignment code in mips crt_arch.h 2015-05-24 23:03:47 -04:00
or1k add .text section directive to all crt_arch.h files missing it 2015-05-22 01:50:05 -04:00
powerpc add .text section directive to all crt_arch.h files missing it 2015-05-22 01:50:05 -04:00
sh switch to using trap number 31 for syscalls on sh 2015-06-16 15:25:02 +00:00
x32 fix inconsistency in a_and and a_or argument types on x86[_64] 2015-05-20 00:17:35 -04:00
x86_64 fix inconsistency in a_and and a_or argument types on x86[_64] 2015-05-20 00:17:35 -04:00