]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/nios/traps.S
Patch by Scott McNutt, 25 Apr 2004:
[karo-tx-uboot.git] / cpu / nios / traps.S
index 655fc635884c78b44196fe94a73c08a9f880f856..bc4d3f66dae70fa7473f6ca9f248a0b1af48a88c 100644 (file)
@@ -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