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>
This commit is contained in:
@@ -101,13 +101,7 @@ static int retry_gpv(unsigned int gpv_reason)
|
|||||||
|
|
||||||
#endif /* CHIP_HAS_TILE_DMA() */
|
#endif /* CHIP_HAS_TILE_DMA() */
|
||||||
|
|
||||||
#ifdef __tilegx__
|
extern tile_bundle_bits bpt_code;
|
||||||
#define bundle_bits tilegx_bundle_bits
|
|
||||||
#else
|
|
||||||
#define bundle_bits tile_bundle_bits
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern bundle_bits bpt_code;
|
|
||||||
|
|
||||||
asm(".pushsection .rodata.bpt_code,\"a\";"
|
asm(".pushsection .rodata.bpt_code,\"a\";"
|
||||||
".align 8;"
|
".align 8;"
|
||||||
@@ -115,7 +109,7 @@ asm(".pushsection .rodata.bpt_code,\"a\";"
|
|||||||
".size bpt_code,.-bpt_code;"
|
".size bpt_code,.-bpt_code;"
|
||||||
".popsection");
|
".popsection");
|
||||||
|
|
||||||
static int special_ill(bundle_bits bundle, int *sigp, int *codep)
|
static int special_ill(tile_bundle_bits bundle, int *sigp, int *codep)
|
||||||
{
|
{
|
||||||
int sig, code, maxcode;
|
int sig, code, maxcode;
|
||||||
|
|
||||||
@@ -263,7 +257,7 @@ void __kprobes do_trap(struct pt_regs *regs, int fault_num,
|
|||||||
siginfo_t info = { 0 };
|
siginfo_t info = { 0 };
|
||||||
int signo, code;
|
int signo, code;
|
||||||
unsigned long address = 0;
|
unsigned long address = 0;
|
||||||
bundle_bits instr;
|
tile_bundle_bits instr;
|
||||||
int is_kernel = !user_mode(regs);
|
int is_kernel = !user_mode(regs);
|
||||||
|
|
||||||
/* Handle breakpoints, etc. */
|
/* Handle breakpoints, etc. */
|
||||||
|
Reference in New Issue
Block a user