aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/entry-header.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/entry-header.S')
-rw-r--r--arch/arm/kernel/entry-header.S22
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S
index 9d4d286d3808..0eb7fc935e21 100644
--- a/arch/arm/kernel/entry-header.S
+++ b/arch/arm/kernel/entry-header.S
@@ -31,13 +31,6 @@
31 31
32#define PT_TRACESYS 0x00000002 32#define PT_TRACESYS 0x00000002
33 33
34@ OS version number used in SWIs
35@ RISC OS is 0
36@ RISC iX is 8
37@
38#define OS_NUMBER 9
39#define ARMSWI_OFFSET 0x000f0000
40
41@ 34@
42@ Most of the stack format comes from struct pt_regs, but with 35@ Most of the stack format comes from struct pt_regs, but with
43@ the addition of 8 bytes for storing syscall args 5 and 6. 36@ the addition of 8 bytes for storing syscall args 5 and 6.
@@ -150,18 +143,3 @@ scno .req r7 @ syscall number
150tbl .req r8 @ syscall table pointer 143tbl .req r8 @ syscall table pointer
151why .req r8 @ Linux syscall (!= 0) 144why .req r8 @ Linux syscall (!= 0)
152tsk .req r9 @ current thread_info 145tsk .req r9 @ current thread_info
153
154/*
155 * Get the system call number.
156 */
157 .macro get_scno
158#ifdef CONFIG_ARM_THUMB
159 tst r8, #PSR_T_BIT @ this is SPSR from save_user_regs
160 addne scno, r7, #OS_NUMBER << 20 @ put OS number in
161 ldreq scno, [lr, #-4]
162
163#else
164 mask_pc lr, lr
165 ldr scno, [lr, #-4] @ get SWI instruction
166#endif
167 .endm