From e4cc71aa4403c82f0b3e89087024f83832ece9ec Mon Sep 17 00:00:00 2001 From: wdenk Date: Wed, 19 May 2004 21:33:14 +0000 Subject: 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. --- cpu/nios/traps.S | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'cpu/nios/traps.S') 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 -- cgit v1.2.3