mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 07:50:04 +00:00
Hexagon: fix signal delivery for debug traps
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
This commit is contained in:
parent
ea0f1b9215
commit
8914d7e857
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Kernel traps/events for Hexagon processor
|
* Kernel traps/events for Hexagon processor
|
||||||
*
|
*
|
||||||
* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
|
* Copyright (c) 2010-2014, The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License version 2 and
|
* it under the terms of the GNU General Public License version 2 and
|
||||||
@ -423,7 +423,7 @@ void do_trap0(struct pt_regs *regs)
|
|||||||
*/
|
*/
|
||||||
info.si_code = TRAP_BRKPT;
|
info.si_code = TRAP_BRKPT;
|
||||||
info.si_addr = (void __user *) pt_elr(regs);
|
info.si_addr = (void __user *) pt_elr(regs);
|
||||||
send_sig_info(SIGTRAP, &info, current);
|
force_sig_info(SIGTRAP, &info, current);
|
||||||
} else {
|
} else {
|
||||||
#ifdef CONFIG_KGDB
|
#ifdef CONFIG_KGDB
|
||||||
kgdb_handle_exception(pt_cause(regs), SIGTRAP,
|
kgdb_handle_exception(pt_cause(regs), SIGTRAP,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user