malta kgdb, defconfig update
PATCH 1/1 malta kgdb, defconfig update
This patch mainly makes Malta work with kgdb. Some minor defconfig improvement as well.
Don't expect any objections, but I'd like to run a check here ...
Jun
arch/mips/mips-boards/malta/malta_setup.c renamed from arch/mips/mips-boards/malta/malta_setup.c.orig +5 -10
@@ -51,10 +51,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;
@@ -64,9 +62,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 );
@@ -94,8 +89,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;
@@ -130,8 +125,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 );
arch/mips/mips-boards/malta/malta_int.c renamed from arch/mips/mips-boards/malta/malta_int.c.orig +6 -0
@@ -43,6 +43,12 @@extern void init_i8259_irqs (void );extern int mips_pcibios_iack (void ); +#ifdef CONFIG_REMOTE_DEBUG +extern void breakpoint (void ); +extern void set_debug_traps (void ); +extern int remote_debug; +#endif +static spinlock_t mips_irq_lock =SPIN_LOCK_UNLOCKED ;static inline int get_int (int *irq)
arch/mips/defconfig-malta renamed from arch/mips/defconfig-malta.orig +9 -6
@@ -13,7 +13,9 @@ # # Loadable module support # -# CONFIG_MODULES is not set +CONFIG_MODULES=y +# CONFIG_MODVERSIONS is not set +CONFIG_KMOD=y # # Machine selection
@@ -187,8 +189,8 @@ # CONFIG_IP_MULTICAST is not set # CONFIG_IP_ADVANCED_ROUTER is not set CONFIG_IP_PNP=y -# CONFIG_IP_PNP_DHCP is not set -# CONFIG_IP_PNP_BOOTP is not set +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y # CONFIG_IP_PNP_RARP is not set # CONFIG_NET_IPIP is not set # CONFIG_NET_IPGRE is not set
@@ -567,13 +569,14 @@ # CONFIG_CODA_FS is not set # CONFIG_INTERMEZZO_FS is not set CONFIG_NFS_FS=y -# CONFIG_NFS_V3 is not set +CONFIG_NFS_V3=y CONFIG_ROOT_NFS=y -# CONFIG_NFSD is not set -# CONFIG_NFSD_V3 is not set +CONFIG_NFSD=y +CONFIG_NFSD_V3=y # CONFIG_NFSD_TCP is not set CONFIG_SUNRPC=y CONFIG_LOCKD=y +CONFIG_LOCKD_V4=y # CONFIG_SMB_FS is not set # CONFIG_NCP_FS is not set # CONFIG_NCPFS_PACKET_SIGNING is not set
arch/mips64/defconfig-malta renamed from arch/mips64/defconfig-malta.orig +11 -6
@@ -13,7 +13,9 @@ # # Loadable module support # -# CONFIG_MODULES is not set +CONFIG_MODULES=y +# CONFIG_MODVERSIONS is not set +CONFIG_KMOD=y # # Machine selection
@@ -185,8 +187,8 @@ # CONFIG_IP_MULTICAST is not set # CONFIG_IP_ADVANCED_ROUTER is not set CONFIG_IP_PNP=y -# CONFIG_IP_PNP_DHCP is not set -# CONFIG_IP_PNP_BOOTP is not set +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y # CONFIG_IP_PNP_RARP is not set # CONFIG_NET_IPIP is not set # CONFIG_NET_IPGRE is not set
@@ -533,13 +535,14 @@ # CONFIG_CODA_FS is not set # CONFIG_INTERMEZZO_FS is not set CONFIG_NFS_FS=y -# CONFIG_NFS_V3 is not set +CONFIG_NFS_V3=y CONFIG_ROOT_NFS=y -# CONFIG_NFSD is not set -# CONFIG_NFSD_V3 is not set +CONFIG_NFSD=y +CONFIG_NFSD_V3=y # CONFIG_NFSD_TCP is not set CONFIG_SUNRPC=y CONFIG_LOCKD=y +CONFIG_LOCKD_V4=y # CONFIG_SMB_FS is not set # CONFIG_NCP_FS is not set # CONFIG_NCPFS_PACKET_SIGNING is not set
@@ -585,6 +588,8 @@ # CONFIG_CROSSCOMPILE=y # CONFIG_DEBUG is not set +# CONFIG_REMOTE_DEBUG is not set +# CONFIG_GDB_CONSOLE is not set # CONFIG_MAGIC_SYSRQ is not set # CONFIG_MIPS_UNCACHED is not set
arch/mips/mips-boards/malta/malta_setup.c renamed from arch/mips/mips-boards/malta/malta_setup.c.orig +5 -10
@@ -48,10 +48,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;
@@ -61,9 +59,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 );
@@ -91,8 +86,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;
@@ -127,8 +122,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 );
arch/mips/mips-boards/malta/malta_int.c renamed from arch/mips/mips-boards/malta/malta_int.c.orig +6 -0
@@ -43,6 +43,12 @@extern void init_i8259_irqs (void );extern int mips_pcibios_iack (void ); +#ifdef CONFIG_REMOTE_DEBUG +extern void breakpoint (void ); +extern void set_debug_traps (void ); +extern int remote_debug; +#endif +static spinlock_t mips_irq_lock =SPIN_LOCK_UNLOCKED ;static inline int get_int (int *irq)
arch/mips/defconfig-malta renamed from arch/mips/defconfig-malta.orig +12 -6
@@ -21,7 +21,9 @@ # # Loadable module support # -# CONFIG_MODULES is not set +CONFIG_MODULES=y +# CONFIG_MODVERSIONS is not set +CONFIG_KMOD=y # # Machine selection
@@ -243,8 +245,8 @@ # CONFIG_IP_MULTICAST is not set # CONFIG_IP_ADVANCED_ROUTER is not set CONFIG_IP_PNP=y -# CONFIG_IP_PNP_DHCP is not set -# CONFIG_IP_PNP_BOOTP is not set +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y # CONFIG_IP_PNP_RARP is not set # CONFIG_NET_IPIP is not set # CONFIG_NET_IPGRE is not set
@@ -519,13 +521,17 @@ # CONFIG_CODA_FS is not set # CONFIG_INTERMEZZO_FS is not set CONFIG_NFS_FS=y -# CONFIG_NFS_V3 is not set +CONFIG_NFS_V3=y # CONFIG_NFS_V4 is not set CONFIG_ROOT_NFS=y -# CONFIG_NFSD is not set +CONFIG_NFSD=y +CONFIG_NFSD_V3=y +# CONFIG_NFSD_V4 is not set +# CONFIG_NFSD_TCP is not set CONFIG_SUNRPC=y CONFIG_LOCKD=y -# CONFIG_EXPORTFS is not set +CONFIG_LOCKD_V4=y +CONFIG_EXPORTFS=y # CONFIG_CIFS is not set # CONFIG_SMB_FS is not set # CONFIG_NCP_FS is not set
arch/mips64/defconfig-malta renamed from arch/mips64/defconfig-malta.orig +12 -6
@@ -21,7 +21,9 @@ # # Loadable module support # -# CONFIG_MODULES is not set +CONFIG_MODULES=y +# CONFIG_MODVERSIONS is not set +CONFIG_KMOD=y # # Machine selection
@@ -239,8 +241,8 @@ # CONFIG_IP_MULTICAST is not set # CONFIG_IP_ADVANCED_ROUTER is not set CONFIG_IP_PNP=y -# CONFIG_IP_PNP_DHCP is not set -# CONFIG_IP_PNP_BOOTP is not set +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y # CONFIG_IP_PNP_RARP is not set # CONFIG_NET_IPIP is not set # CONFIG_NET_IPGRE is not set
@@ -498,13 +500,17 @@ # CONFIG_CODA_FS is not set # CONFIG_INTERMEZZO_FS is not set CONFIG_NFS_FS=y -# CONFIG_NFS_V3 is not set +CONFIG_NFS_V3=y # CONFIG_NFS_V4 is not set CONFIG_ROOT_NFS=y -# CONFIG_NFSD is not set +CONFIG_NFSD=y +CONFIG_NFSD_V3=y +# CONFIG_NFSD_V4 is not set +# CONFIG_NFSD_TCP is not set CONFIG_SUNRPC=y CONFIG_LOCKD=y -# CONFIG_EXPORTFS is not set +CONFIG_LOCKD_V4=y +CONFIG_EXPORTFS=y # CONFIG_CIFS is not set # CONFIG_SMB_FS is not set # CONFIG_NCP_FS is not set