Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] Let kgdb work on Malta
@ 2002-07-22 23:20 Jun Sun
  0 siblings, 0 replies; only message in thread
From: Jun Sun @ 2002-07-22 23:20 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 61 bytes --]

Applies to both 2.4 & 2.5.  (The offset warning is OK)

Jun


[-- Attachment #2: malta-kgdb.patch --]
[-- Type: text/plain, Size: 2190 bytes --]

diff -Nru linux/arch/mips/mips-boards/malta/malta_setup.c.orig linux/arch/mips/mips-boards/malta/malta_setup.c
--- linux/arch/mips/mips-boards/malta/malta_setup.c.orig	Mon Jul 22 10:45:56 2002
+++ linux/arch/mips/mips-boards/malta/malta_setup.c	Mon Jul 22 16:16:18 2002
@@ -50,10 +50,8 @@
 #endif
 
 #ifdef CONFIG_REMOTE_DEBUG
-extern void set_debug_traps(void);
 extern void rs_kgdb_hook(int);
-extern void breakpoint(void);
-static int remote_debug = 0;
+int remote_debug = 0;
 #endif
 
 extern struct ide_ops std_ide_ops;
@@ -63,9 +61,6 @@
 
 extern void mips_reboot_setup(void);
 
-extern void (*board_time_init)(void);
-extern void (*board_timer_setup)(struct irqaction *irq);
-extern unsigned long (*rtc_get_time)(void);
 extern void mips_time_init(void);
 extern void mips_timer_setup(struct irqaction *irq);
 extern unsigned long mips_rtc_get_time(void);
@@ -84,8 +79,8 @@
 #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;
@@ -120,8 +115,8 @@
 		       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);
diff -Nru linux/arch/mips/mips-boards/malta/malta_int.c.orig linux/arch/mips/mips-boards/malta/malta_int.c
--- linux/arch/mips/mips-boards/malta/malta_int.c.orig	Mon Jul 22 10:12:44 2002
+++ linux/arch/mips/mips-boards/malta/malta_int.c	Mon Jul 22 14:25:47 2002
@@ -40,8 +40,16 @@
 
 extern asmlinkage void mipsIRQ(void);
 extern asmlinkage void do_IRQ(int irq, struct pt_regs *regs);
+
+extern void init_generic_irq();
 extern void init_i8259_irqs (void);
 
+#ifdef CONFIG_REMOTE_DEBUG
+extern void breakpoint(void);
+extern void set_debug_traps(void);
+extern int remote_debug;
+#endif
+
 void enable_mips_irq(unsigned int irq);
 void disable_mips_irq(unsigned int irq);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-22 23:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-22 23:20 [PATCH] Let kgdb work on Malta Jun Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox