patch-2.4.22 linux-2.4.22/arch/mips/sibyte/swarm/dbg_io.c
Next file: linux-2.4.22/arch/mips/sibyte/swarm/rtc_m41t81.c
Previous file: linux-2.4.22/arch/mips/sibyte/swarm/Makefile
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/mips/sibyte/swarm/dbg_io.c
- Orig date:
2002-08-02 17:39:43.000000000 -0700
diff -urN linux-2.4.21/arch/mips/sibyte/swarm/dbg_io.c linux-2.4.22/arch/mips/sibyte/swarm/dbg_io.c
@@ -1,5 +1,5 @@
/*
- * kgdb debug routines for swarm board.
+ * kgdb debug routines for SiByte boards.
*
* Copyright (C) 2001 MontaVista Software Inc.
* Author: Jun Sun, jsun@mvista.com or jsun@junsun.net
@@ -35,12 +35,10 @@
static int duart_initialized = 0; /* 0: need to be init'ed by kgdb */
/* -------------------- END OF CONFIG --------------------- */
+extern int kgdb_port;
-
-#define duart_out(reg, val) out64(val, KSEG1 + A_DUART_CHANREG(1,reg))
-#define duart_in(reg) in64(KSEG1 + A_DUART_CHANREG(1,reg))
-
-extern void set_async_breakpoint(unsigned int epc);
+#define duart_out(reg, val) csr_out32(val, KSEG1 + A_DUART_CHANREG(kgdb_port,reg))
+#define duart_in(reg) csr_in32(KSEG1 + A_DUART_CHANREG(kgdb_port,reg))
void putDebugChar(unsigned char c);
unsigned char getDebugChar(void);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)