diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2013-08-13 15:33:53 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-09-03 14:53:22 -0400 |
commit | a0099303cd6336675a5532e0444c1b6fd493ca49 (patch) | |
tree | 2b4f1491ef662723bfed8b71569b0cac433d497a /arch/tile | |
parent | 43b7f2fb58d42d2b6bc02368f61e14abd002001a (diff) |
tile: use standard tile_bundle_bits type in traps.c
We were rolling our own bundle_bits, which is unnecessary.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/kernel/traps.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/tile/kernel/traps.c b/arch/tile/kernel/traps.c index a937365b3429..6b603d556ca6 100644 --- a/arch/tile/kernel/traps.c +++ b/arch/tile/kernel/traps.c | |||
@@ -101,13 +101,7 @@ static int retry_gpv(unsigned int gpv_reason) | |||
101 | 101 | ||
102 | #endif /* CHIP_HAS_TILE_DMA() */ | 102 | #endif /* CHIP_HAS_TILE_DMA() */ |
103 | 103 | ||
104 | #ifdef __tilegx__ | 104 | extern tile_bundle_bits bpt_code; |
105 | #define bundle_bits tilegx_bundle_bits | ||
106 | #else | ||
107 | #define bundle_bits tile_bundle_bits | ||
108 | #endif | ||
109 | |||
110 | extern bundle_bits bpt_code; | ||
111 | 105 | ||
112 | asm(".pushsection .rodata.bpt_code,\"a\";" | 106 | asm(".pushsection .rodata.bpt_code,\"a\";" |
113 | ".align 8;" | 107 | ".align 8;" |
@@ -115,7 +109,7 @@ asm(".pushsection .rodata.bpt_code,\"a\";" | |||
115 | ".size bpt_code,.-bpt_code;" | 109 | ".size bpt_code,.-bpt_code;" |
116 | ".popsection"); | 110 | ".popsection"); |
117 | 111 | ||
118 | static int special_ill(bundle_bits bundle, int *sigp, int *codep) | 112 | static int special_ill(tile_bundle_bits bundle, int *sigp, int *codep) |
119 | { | 113 | { |
120 | int sig, code, maxcode; | 114 | int sig, code, maxcode; |
121 | 115 | ||
@@ -263,7 +257,7 @@ void __kprobes do_trap(struct pt_regs *regs, int fault_num, | |||
263 | siginfo_t info = { 0 }; | 257 | siginfo_t info = { 0 }; |
264 | int signo, code; | 258 | int signo, code; |
265 | unsigned long address = 0; | 259 | unsigned long address = 0; |
266 | bundle_bits instr; | 260 | tile_bundle_bits instr; |
267 | int is_kernel = !user_mode(regs); | 261 | int is_kernel = !user_mode(regs); |
268 | 262 | ||
269 | /* Handle breakpoints, etc. */ | 263 | /* Handle breakpoints, etc. */ |