summaryrefslogtreecommitdiff
path: root/cpu/nios/traps.S
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-05-19 21:33:14 +0000
committerwdenk <wdenk>2004-05-19 21:33:14 +0000
commite4cc71aa4403c82f0b3e89087024f83832ece9ec (patch)
tree48c8295c714dfbfe7be70796c87b41c2065f166f /cpu/nios/traps.S
parent10767ccb86e0413633e7d89fbbb354014288b036 (diff)
Patch by Scott McNutt, 25 Apr 2004:
Add Nios GDB/JTAG Console support: - Add stubs to support gdb via JTAG. - Add support for console over JTAG. - Minor cleanup.
Diffstat (limited to 'cpu/nios/traps.S')
-rw-r--r--cpu/nios/traps.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/cpu/nios/traps.S b/cpu/nios/traps.S
index 655fc63588..bc4d3f66da 100644
--- a/cpu/nios/traps.S
+++ b/cpu/nios/traps.S
@@ -557,3 +557,26 @@ _timebase_int:
mov %fp, %sp
tret %o7 /* Done */
+
+/*************************************************************************
+ * GDB stubs
+ ************************************************************************/
+ .text
+ .global _brkpt_hw_int, _brkpt_sw_int
+ .align 4
+
+_brkpt_hw_int:
+ movi %l1, 9
+ pfx 3
+ wrctl %l1
+ pfx 4
+ wrctl %l1
+
+_brkpt_sw_int:
+ movi %l1, 9
+ pfx 3
+ wrctl %l1
+ pfx 4
+ wrctl %l1
+
+ tret %o7