diff options
author | wdenk <wdenk> | 2004-05-19 21:33:14 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-05-19 21:33:14 +0000 |
commit | e4cc71aa4403c82f0b3e89087024f83832ece9ec (patch) | |
tree | 48c8295c714dfbfe7be70796c87b41c2065f166f /cpu/nios/traps.S | |
parent | 10767ccb86e0413633e7d89fbbb354014288b036 (diff) | |
download | u-boot-imx-e4cc71aa4403c82f0b3e89087024f83832ece9ec.zip u-boot-imx-e4cc71aa4403c82f0b3e89087024f83832ece9ec.tar.gz u-boot-imx-e4cc71aa4403c82f0b3e89087024f83832ece9ec.tar.bz2 |
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.S | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cpu/nios/traps.S b/cpu/nios/traps.S index 655fc63..bc4d3f6 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 |