File tree Expand file tree Collapse file tree 3 files changed +0
-17
lines changed Expand file tree Collapse file tree 3 files changed +0
-17
lines changed Original file line number Diff line number Diff line change 29
29
*/
30
30
#define SWI_SYS_SIGRETURN (0xef000000|(__NR_sigreturn)|(__NR_OABI_SYSCALL_BASE))
31
31
#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)
33
32
34
33
/*
35
34
* With EABI, the syscall number has to be loaded into r7.
@@ -49,18 +48,6 @@ const unsigned long sigreturn_codes[7] = {
49
48
MOV_R7_NR_RT_SIGRETURN , SWI_SYS_RT_SIGRETURN , SWI_THUMB_RT_SIGRETURN ,
50
49
};
51
50
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
-
64
51
/*
65
52
* atomically swap in the new signal mask, and wait for a signal.
66
53
*/
Original file line number Diff line number Diff line change 8
8
* published by the Free Software Foundation.
9
9
*/
10
10
#define KERN_SIGRETURN_CODE (CONFIG_VECTORS_BASE + 0x00000500)
11
- #define KERN_RESTART_CODE (KERN_SIGRETURN_CODE + sizeof(sigreturn_codes))
12
11
13
12
extern const unsigned long sigreturn_codes [7 ];
14
- extern const unsigned long syscall_restart_code [2 ];
Original file line number Diff line number Diff line change @@ -819,8 +819,6 @@ void __init early_trap_init(void *vectors_base)
819
819
*/
820
820
memcpy ((void * )(vectors + KERN_SIGRETURN_CODE - CONFIG_VECTORS_BASE ),
821
821
sigreturn_codes , sizeof (sigreturn_codes ));
822
- memcpy ((void * )(vectors + KERN_RESTART_CODE - CONFIG_VECTORS_BASE ),
823
- syscall_restart_code , sizeof (syscall_restart_code ));
824
822
825
823
flush_icache_range (vectors , vectors + PAGE_SIZE );
826
824
modify_domain (DOMAIN_USER , DOMAIN_CLIENT );
You can’t perform that action at this time.
0 commit comments