19f9a34f87
This implements initial support for the vsyscall page on SH. At the moment we leave it configurable due to having nommu to support from the same code base. We hook it up for the signal trampoline return at present, with more to be added later, once uClibc catches up. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
40 lines
673 B
ArmAsm
40 lines
673 B
ArmAsm
#include <asm/unistd.h>
|
|
|
|
.text
|
|
.balign 32
|
|
.globl __kernel_sigreturn
|
|
.type __kernel_sigreturn,@function
|
|
__kernel_sigreturn:
|
|
.LSTART_sigreturn:
|
|
mov.w 1f, r3
|
|
trapa #0x10
|
|
or r0, r0
|
|
or r0, r0
|
|
or r0, r0
|
|
or r0, r0
|
|
or r0, r0
|
|
|
|
1: .short __NR_sigreturn
|
|
.LEND_sigreturn:
|
|
.size __kernel_sigreturn,.-.LSTART_sigreturn
|
|
|
|
.balign 32
|
|
.globl __kernel_rt_sigreturn
|
|
.type __kernel_rt_sigreturn,@function
|
|
__kernel_rt_sigreturn:
|
|
.LSTART_rt_sigreturn:
|
|
mov.w 1f, r3
|
|
trapa #0x10
|
|
or r0, r0
|
|
or r0, r0
|
|
or r0, r0
|
|
or r0, r0
|
|
or r0, r0
|
|
|
|
1: .short __NR_rt_sigreturn
|
|
.LEND_rt_sigreturn:
|
|
.size __kernel_rt_sigreturn,.-.LSTART_rt_sigreturn
|
|
|
|
.section .eh_frame,"a",@progbits
|
|
.previous
|