Skip to content

Commit fa18484

Browse files
author
Al Viro
committed
arm: remove unused restart trampoline
Signed-off-by: Al Viro <[email protected]>
1 parent 6b5c804 commit fa18484

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

arch/arm/kernel/signal.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
*/
3030
#define SWI_SYS_SIGRETURN (0xef000000|(__NR_sigreturn)|(__NR_OABI_SYSCALL_BASE))
3131
#define SWI_SYS_RT_SIGRETURN (0xef000000|(__NR_rt_sigreturn)|(__NR_OABI_SYSCALL_BASE))
32-
#define SWI_SYS_RESTART (0xef000000|__NR_restart_syscall|__NR_OABI_SYSCALL_BASE)
3332

3433
/*
3534
* With EABI, the syscall number has to be loaded into r7.
@@ -49,18 +48,6 @@ const unsigned long sigreturn_codes[7] = {
4948
MOV_R7_NR_RT_SIGRETURN, SWI_SYS_RT_SIGRETURN, SWI_THUMB_RT_SIGRETURN,
5049
};
5150

52-
/*
53-
* Either we support OABI only, or we have EABI with the OABI
54-
* compat layer enabled. In the later case we don't know if
55-
* user space is EABI or not, and if not we must not clobber r7.
56-
* Always using the OABI syscall solves that issue and works for
57-
* all those cases.
58-
*/
59-
const unsigned long syscall_restart_code[2] = {
60-
SWI_SYS_RESTART, /* swi __NR_restart_syscall */
61-
0xe49df004, /* ldr pc, [sp], #4 */
62-
};
63-
6451
/*
6552
* atomically swap in the new signal mask, and wait for a signal.
6653
*/

arch/arm/kernel/signal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,5 @@
88
* published by the Free Software Foundation.
99
*/
1010
#define KERN_SIGRETURN_CODE (CONFIG_VECTORS_BASE + 0x00000500)
11-
#define KERN_RESTART_CODE (KERN_SIGRETURN_CODE + sizeof(sigreturn_codes))
1211

1312
extern const unsigned long sigreturn_codes[7];
14-
extern const unsigned long syscall_restart_code[2];

arch/arm/kernel/traps.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,8 +819,6 @@ void __init early_trap_init(void *vectors_base)
819819
*/
820820
memcpy((void *)(vectors + KERN_SIGRETURN_CODE - CONFIG_VECTORS_BASE),
821821
sigreturn_codes, sizeof(sigreturn_codes));
822-
memcpy((void *)(vectors + KERN_RESTART_CODE - CONFIG_VECTORS_BASE),
823-
syscall_restart_code, sizeof(syscall_restart_code));
824822

825823
flush_icache_range(vectors, vectors + PAGE_SIZE);
826824
modify_domain(DOMAIN_USER, DOMAIN_CLIENT);

0 commit comments

Comments
 (0)