summaryrefslogtreecommitdiffstats
path: root/arch/mips/mips-boards
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-03-15 23:48:54 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-03-15 23:48:54 +0000
commit13d52738c8fc4e7dbb8ce59d053bb157e91e9af4 (patch)
tree828ad52a67680de6de93f619076dd536221a74c7 /arch/mips/mips-boards
parent4a659b7e8eb8cc7dfc3e2f50885190f525d86104 (diff)
Kgdb related improvments.
Diffstat (limited to 'arch/mips/mips-boards')
-rw-r--r--arch/mips/mips-boards/atlas/atlas_setup.c12
-rw-r--r--arch/mips/mips-boards/generic/gdb_hook.c14
-rw-r--r--arch/mips/mips-boards/malta/malta_setup.c8
3 files changed, 22 insertions, 12 deletions
diff --git a/arch/mips/mips-boards/atlas/atlas_setup.c b/arch/mips/mips-boards/atlas/atlas_setup.c
index 42546a93d..63723d695 100644
--- a/arch/mips/mips-boards/atlas/atlas_setup.c
+++ b/arch/mips/mips-boards/atlas/atlas_setup.c
@@ -54,8 +54,8 @@ void __init atlas_setup(void)
char rs_getDebugChar(void);
int saa9730_putDebugChar(char);
char saa9730_getDebugChar(void);
- extern int (*putDebugChar)(char);
- extern char (*getDebugChar)(void);
+ extern int (*generic_putDebugChar)(char);
+ extern char (*generic_getDebugChar)(void);
#endif
char *argptr;
@@ -89,12 +89,12 @@ void __init atlas_setup(void)
if(line == 0) {
rs_kgdb_hook(line);
- putDebugChar = rs_putDebugChar;
- getDebugChar = rs_getDebugChar;
+ generic_putDebugChar = rs_putDebugChar;
+ generic_getDebugChar = rs_getDebugChar;
} else {
saa9730_kgdb_hook();
- putDebugChar = saa9730_putDebugChar;
- getDebugChar = saa9730_getDebugChar;
+ generic_putDebugChar = saa9730_putDebugChar;
+ generic_getDebugChar = saa9730_getDebugChar;
}
prom_printf("KGDB: Using serial line /dev/ttyS%d for session, "
diff --git a/arch/mips/mips-boards/generic/gdb_hook.c b/arch/mips/mips-boards/generic/gdb_hook.c
index c0de8d6ec..05af26b24 100644
--- a/arch/mips/mips-boards/generic/gdb_hook.c
+++ b/arch/mips/mips-boards/generic/gdb_hook.c
@@ -35,8 +35,8 @@ static struct serial_state rs_table[RS_TABLE_SIZE] = {
static struct async_struct kdb_port_info = {0};
-int (*putDebugChar)(char);
-char (*getDebugChar)(void);
+int (*generic_putDebugChar)(char);
+char (*generic_getDebugChar)(void);
static __inline__ unsigned int serial_in(struct async_struct *info, int offset)
{
@@ -97,6 +97,16 @@ void rs_kgdb_hook(int tty_no) {
serial_out(&kdb_port_info, UART_LCR, UART_LCR_WLEN8);
}
+int putDebugChar(char c)
+{
+ return generic_putDebugChar(c);
+}
+
+char getDebugChar(void)
+{
+ return generic_getDebugChar();
+}
+
int rs_putDebugChar(char c)
{
diff --git a/arch/mips/mips-boards/malta/malta_setup.c b/arch/mips/mips-boards/malta/malta_setup.c
index 6b362b0ab..e3238a0b7 100644
--- a/arch/mips/mips-boards/malta/malta_setup.c
+++ b/arch/mips/mips-boards/malta/malta_setup.c
@@ -95,8 +95,8 @@ void __init malta_setup(void)
#ifdef CONFIG_REMOTE_DEBUG
int rs_putDebugChar(char);
char rs_getDebugChar(void);
- extern int (*putDebugChar)(char);
- extern char (*getDebugChar)(void);
+ extern int (*generic_putDebugChar)(char);
+ extern char (*generic_getDebugChar)(void);
#endif
char *argptr;
int i;
@@ -133,8 +133,8 @@ void __init malta_setup(void)
line ? 1 : 0);
rs_kgdb_hook(line);
- putDebugChar = rs_putDebugChar;
- getDebugChar = rs_getDebugChar;
+ generic_putDebugChar = rs_putDebugChar;
+ generic_getDebugChar = rs_getDebugChar;
prom_printf("KGDB: Using serial line /dev/ttyS%d for session, "
"please connect your debugger\n", line ? 1 : 0);