diff options
Diffstat (limited to 'include/asm-sparc64/ttable.h')
-rw-r--r-- | include/asm-sparc64/ttable.h | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/include/asm-sparc64/ttable.h b/include/asm-sparc64/ttable.h index bbb9c8f13d61..d3cc4eff39a6 100644 --- a/include/asm-sparc64/ttable.h +++ b/include/asm-sparc64/ttable.h | |||
@@ -28,7 +28,7 @@ | |||
28 | call routine; \ | 28 | call routine; \ |
29 | add %sp, PTREGS_OFF, %o0; \ | 29 | add %sp, PTREGS_OFF, %o0; \ |
30 | ba,pt %xcc, rtrap; \ | 30 | ba,pt %xcc, rtrap; \ |
31 | clr %l6; \ | 31 | nop; \ |
32 | nop; | 32 | nop; |
33 | 33 | ||
34 | #define TRAP_7INSNS(routine) \ | 34 | #define TRAP_7INSNS(routine) \ |
@@ -38,7 +38,7 @@ | |||
38 | call routine; \ | 38 | call routine; \ |
39 | add %sp, PTREGS_OFF, %o0; \ | 39 | add %sp, PTREGS_OFF, %o0; \ |
40 | ba,pt %xcc, rtrap; \ | 40 | ba,pt %xcc, rtrap; \ |
41 | clr %l6; | 41 | nop; |
42 | 42 | ||
43 | #define TRAP_SAVEFPU(routine) \ | 43 | #define TRAP_SAVEFPU(routine) \ |
44 | sethi %hi(109f), %g7; \ | 44 | sethi %hi(109f), %g7; \ |
@@ -47,7 +47,7 @@ | |||
47 | call routine; \ | 47 | call routine; \ |
48 | add %sp, PTREGS_OFF, %o0; \ | 48 | add %sp, PTREGS_OFF, %o0; \ |
49 | ba,pt %xcc, rtrap; \ | 49 | ba,pt %xcc, rtrap; \ |
50 | clr %l6; \ | 50 | nop; \ |
51 | nop; | 51 | nop; |
52 | 52 | ||
53 | #define TRAP_NOSAVE(routine) \ | 53 | #define TRAP_NOSAVE(routine) \ |
@@ -67,7 +67,7 @@ | |||
67 | call routine; \ | 67 | call routine; \ |
68 | add %sp, PTREGS_OFF, %o0; \ | 68 | add %sp, PTREGS_OFF, %o0; \ |
69 | ba,pt %xcc, rtrap; \ | 69 | ba,pt %xcc, rtrap; \ |
70 | clr %l6; \ | 70 | nop; \ |
71 | nop; | 71 | nop; |
72 | 72 | ||
73 | #define TRAP_ARG(routine, arg) \ | 73 | #define TRAP_ARG(routine, arg) \ |
@@ -78,7 +78,7 @@ | |||
78 | call routine; \ | 78 | call routine; \ |
79 | mov arg, %o1; \ | 79 | mov arg, %o1; \ |
80 | ba,pt %xcc, rtrap; \ | 80 | ba,pt %xcc, rtrap; \ |
81 | clr %l6; | 81 | nop; |
82 | 82 | ||
83 | #define TRAPTL1_ARG(routine, arg) \ | 83 | #define TRAPTL1_ARG(routine, arg) \ |
84 | sethi %hi(109f), %g7; \ | 84 | sethi %hi(109f), %g7; \ |
@@ -88,7 +88,7 @@ | |||
88 | call routine; \ | 88 | call routine; \ |
89 | mov arg, %o1; \ | 89 | mov arg, %o1; \ |
90 | ba,pt %xcc, rtrap; \ | 90 | ba,pt %xcc, rtrap; \ |
91 | clr %l6; | 91 | nop; |
92 | 92 | ||
93 | #define SYSCALL_TRAP(routine, systbl) \ | 93 | #define SYSCALL_TRAP(routine, systbl) \ |
94 | sethi %hi(109f), %g7; \ | 94 | sethi %hi(109f), %g7; \ |
@@ -99,14 +99,6 @@ | |||
99 | or %l7, %lo(systbl), %l7; \ | 99 | or %l7, %lo(systbl), %l7; \ |
100 | nop; nop; | 100 | nop; nop; |
101 | 101 | ||
102 | #define INDIRECT_SOLARIS_SYSCALL(num) \ | ||
103 | sethi %hi(109f), %g7; \ | ||
104 | ba,pt %xcc, etrap; \ | ||
105 | 109: or %g7, %lo(109b), %g7; \ | ||
106 | ba,pt %xcc, tl0_solaris + 0xc; \ | ||
107 | mov num, %g1; \ | ||
108 | nop;nop;nop; | ||
109 | |||
110 | #define TRAP_UTRAP(handler,lvl) \ | 102 | #define TRAP_UTRAP(handler,lvl) \ |
111 | mov handler, %g3; \ | 103 | mov handler, %g3; \ |
112 | ba,pt %xcc, utrap_trap; \ | 104 | ba,pt %xcc, utrap_trap; \ |
@@ -117,11 +109,6 @@ | |||
117 | nop; \ | 109 | nop; \ |
118 | nop; | 110 | nop; |
119 | 111 | ||
120 | #ifdef CONFIG_SUNOS_EMUL | ||
121 | #define SUNOS_SYSCALL_TRAP SYSCALL_TRAP(linux_sparc_syscall32, sunos_sys_table) | ||
122 | #else | ||
123 | #define SUNOS_SYSCALL_TRAP TRAP(sunos_syscall) | ||
124 | #endif | ||
125 | #ifdef CONFIG_COMPAT | 112 | #ifdef CONFIG_COMPAT |
126 | #define LINUX_32BIT_SYSCALL_TRAP SYSCALL_TRAP(linux_sparc_syscall32, sys_call_table32) | 113 | #define LINUX_32BIT_SYSCALL_TRAP SYSCALL_TRAP(linux_sparc_syscall32, sys_call_table32) |
127 | #else | 114 | #else |
@@ -130,11 +117,6 @@ | |||
130 | #define LINUX_64BIT_SYSCALL_TRAP SYSCALL_TRAP(linux_sparc_syscall, sys_call_table64) | 117 | #define LINUX_64BIT_SYSCALL_TRAP SYSCALL_TRAP(linux_sparc_syscall, sys_call_table64) |
131 | #define GETCC_TRAP TRAP(getcc) | 118 | #define GETCC_TRAP TRAP(getcc) |
132 | #define SETCC_TRAP TRAP(setcc) | 119 | #define SETCC_TRAP TRAP(setcc) |
133 | #ifdef CONFIG_SOLARIS_EMUL | ||
134 | #define SOLARIS_SYSCALL_TRAP TRAP(solaris_sparc_syscall) | ||
135 | #else | ||
136 | #define SOLARIS_SYSCALL_TRAP TRAP(solaris_syscall) | ||
137 | #endif | ||
138 | #define BREAKPOINT_TRAP TRAP(breakpoint_trap) | 120 | #define BREAKPOINT_TRAP TRAP(breakpoint_trap) |
139 | 121 | ||
140 | #ifdef CONFIG_TRACE_IRQFLAGS | 122 | #ifdef CONFIG_TRACE_IRQFLAGS |
@@ -184,7 +166,7 @@ | |||
184 | ldx [%sp + PTREGS_OFF + PT_V9_TNPC], %l1; \ | 166 | ldx [%sp + PTREGS_OFF + PT_V9_TNPC], %l1; \ |
185 | add %l1, 4, %l2; \ | 167 | add %l1, 4, %l2; \ |
186 | stx %l1, [%sp + PTREGS_OFF + PT_V9_TPC]; \ | 168 | stx %l1, [%sp + PTREGS_OFF + PT_V9_TPC]; \ |
187 | ba,pt %xcc, rtrap_clr_l6; \ | 169 | ba,pt %xcc, rtrap; \ |
188 | stx %l2, [%sp + PTREGS_OFF + PT_V9_TNPC]; | 170 | stx %l2, [%sp + PTREGS_OFF + PT_V9_TNPC]; |
189 | 171 | ||
190 | #ifdef CONFIG_KPROBES | 172 | #ifdef CONFIG_KPROBES |