diff options
Diffstat (limited to 'arch/hexagon/kernel/traps.c')
| -rw-r--r-- | arch/hexagon/kernel/traps.c | 9 | 
1 files changed, 2 insertions, 7 deletions
| diff --git a/arch/hexagon/kernel/traps.c b/arch/hexagon/kernel/traps.c index 2942a9204a9a..91ee04842c22 100644 --- a/arch/hexagon/kernel/traps.c +++ b/arch/hexagon/kernel/traps.c @@ -412,10 +412,6 @@ void do_trap0(struct pt_regs *regs)  	case TRAP_DEBUG:  		/* Trap0 0xdb is debug breakpoint */  		if (user_mode(regs)) { -			struct siginfo info; - -			info.si_signo = SIGTRAP; -			info.si_errno = 0;  			/*  			 * Some architecures add some per-thread state  			 * to distinguish between breakpoint traps and @@ -423,9 +419,8 @@ void do_trap0(struct pt_regs *regs)  			 * set the si_code value appropriately, or we  			 * may want to use a different trap0 flavor.  			 */ -			info.si_code = TRAP_BRKPT; -			info.si_addr = (void __user *) pt_elr(regs); -			force_sig_info(SIGTRAP, &info, current); +			force_sig_fault(SIGTRAP, TRAP_BRKPT, +					(void __user *) pt_elr(regs), current);  		} else {  #ifdef CONFIG_KGDB  			kgdb_handle_exception(pt_cause(regs), SIGTRAP, |