aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/mn10300/Kconfig2
-rw-r--r--arch/mn10300/Kconfig.debug4
-rw-r--r--arch/mn10300/include/asm/debugger.h20
3 files changed, 25 insertions, 1 deletions
diff --git a/arch/mn10300/Kconfig b/arch/mn10300/Kconfig
index 10971be43061..25e6a0bc62ab 100644
--- a/arch/mn10300/Kconfig
+++ b/arch/mn10300/Kconfig
@@ -403,7 +403,7 @@ comment "The following must be set to a higher priority than local_irq_disable()
403 403
404config GDBSTUB_IRQ_LEVEL 404config GDBSTUB_IRQ_LEVEL
405 int "GDBSTUB interrupt priority" 405 int "GDBSTUB interrupt priority"
406 depends on GDBSTUB 406 depends on KERNEL_DEBUGGER
407 range 0 1 if LINUX_CLI_LEVEL = 2 407 range 0 1 if LINUX_CLI_LEVEL = 2
408 range 0 2 if LINUX_CLI_LEVEL = 3 408 range 0 2 if LINUX_CLI_LEVEL = 3
409 range 0 3 if LINUX_CLI_LEVEL = 4 409 range 0 3 if LINUX_CLI_LEVEL = 4
diff --git a/arch/mn10300/Kconfig.debug b/arch/mn10300/Kconfig.debug
index a1b8620f65ae..87adb8f434ee 100644
--- a/arch/mn10300/Kconfig.debug
+++ b/arch/mn10300/Kconfig.debug
@@ -150,3 +150,7 @@ config GDBSTUB_ON_TTYSx
150 default y 150 default y
151 151
152endmenu 152endmenu
153
154config KERNEL_DEBUGGER
155 def_bool y
156 depends on GDBSTUB
diff --git a/arch/mn10300/include/asm/debugger.h b/arch/mn10300/include/asm/debugger.h
new file mode 100644
index 000000000000..4816f0dc28b5
--- /dev/null
+++ b/arch/mn10300/include/asm/debugger.h
@@ -0,0 +1,20 @@
1/* Kernel debugger for MN10300
2 *
3 * Copyright (C) 2011 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
10 */
11
12#ifndef _ASM_DEBUGGER_H
13#define _ASM_DEBUGGER_H
14
15#if defined(CONFIG_KERNEL_DEBUGGER)
16
17#else /* CONFIG_KERNEL_DEBUGGER */
18
19#endif /* CONFIG_KERNEL_DEBUGGER */
20#endif /* _ASM_DEBUGGER_H */