summaryrefslogtreecommitdiff
path: root/arch/nios2/kernel/entry.S
diff options
context:
space:
mode:
authorLey Foon Tan <lftan@altera.com>2015-02-16 19:26:43 +0800
committerLey Foon Tan <lftan@altera.com>2015-02-16 19:26:43 +0800
commitd16d2be111a61baf3a4696f07bfc7a8e36697cec (patch)
tree88284b55d67971ccdaa69fabe0b406098b263644 /arch/nios2/kernel/entry.S
parent08c283cc039efc2cf7d64d7e69d8d01de825fc6c (diff)
nios2: add kgdb support
Signed-off-by: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'arch/nios2/kernel/entry.S')
-rw-r--r--arch/nios2/kernel/entry.S12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/nios2/kernel/entry.S b/arch/nios2/kernel/entry.S
index 0bdfd13ff98b..7729bd3f2e79 100644
--- a/arch/nios2/kernel/entry.S
+++ b/arch/nios2/kernel/entry.S
@@ -121,7 +121,11 @@ trap_table:
.word instruction_trap /* 27 */
.word instruction_trap /* 28 */
.word instruction_trap /* 29 */
- .word instruction_trap /* 30 */
+#ifdef CONFIG_KGDB
+ .word handle_kgdb_breakpoint /* 30 KGDB breakpoint */
+#else
+ .word instruction_trap /* 30 */
+#endif
.word handle_breakpoint /* 31 */
.text
@@ -445,6 +449,12 @@ handle_diverror:
call handle_diverror_c
br ret_from_exception
+#ifdef CONFIG_KGDB
+handle_kgdb_breakpoint:
+ call kgdb_breakpoint_c
+ br ret_from_exception
+#endif
+
/*
* Beware - when entering resume, prev (the current task) is
* in r4, next (the new task) is in r5, don't change these