diff options
Diffstat (limited to 'cpu/nios/traps.S')
-rw-r--r-- | cpu/nios/traps.S | 23 |
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 |