summaryrefslogtreecommitdiff
path: root/arch/xtensa/kernel/traps.c
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2016-01-25 09:57:31 +0300
committerChris Zankel <chris@zankel.net>2016-03-11 08:53:32 +0000
commit816aa58895ca4a6176caded477a655fc82aab5f5 (patch)
treef2a335ec91fec70697d9f0531fb6c16f1dc6d182 /arch/xtensa/kernel/traps.c
parent7de7ac785ae18a2cdc78d7560f48e3213d9ea0ab (diff)
xtensa: remove remaining non-functional KGDB bits
KGDB is not supported on xtensa, but there are bits of related code under arch/xtensa/kernel. Remove these bits. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel/traps.c')
-rw-r--r--arch/xtensa/kernel/traps.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c
index be0cae8082c7..a8b8dae4139a 100644
--- a/arch/xtensa/kernel/traps.c
+++ b/arch/xtensa/kernel/traps.c
@@ -40,11 +40,6 @@
#include <asm/processor.h>
#include <asm/traps.h>
-#ifdef CONFIG_KGDB
-extern int gdb_enter;
-extern int return_from_debug_flag;
-#endif
-
/*
* Machine specific interrupt handlers
*/
@@ -344,20 +339,6 @@ do_unaligned_user (struct pt_regs *regs)
void
do_debug(struct pt_regs *regs)
{
-#ifdef CONFIG_KGDB
- /* If remote debugging is configured AND enabled, we give control to
- * kgdb. Otherwise, we fall through, perhaps giving control to the
- * native debugger.
- */
-
- if (gdb_enter) {
- extern void gdb_handle_exception(struct pt_regs *);
- gdb_handle_exception(regs);
- return_from_debug_flag = 1;
- return;
- }
-#endif
-
__die_if_kernel("Breakpoint in kernel", regs, SIGKILL);
/* If in user mode, send SIGTRAP signal to current process */