Skip to content

Commit 8d60a90

Browse files
jwesselralfbaechle
authored andcommitted
[MIPS] kgdb: Remove existing implementation
This patch explicitly removes the kgdb implementation, for mips which is intended to be followed by a patch that adds a kgdb implementation for MIPS that makes use of the kgdb core in the kernel. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 8f8da9a commit 8d60a90

59 files changed

Lines changed: 4 additions & 3134 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/mips/Kconfig‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ config BASLER_EXCITE
3434
select SYS_HAS_CPU_RM9000
3535
select SYS_SUPPORTS_32BIT_KERNEL
3636
select SYS_SUPPORTS_BIG_ENDIAN
37-
select SYS_SUPPORTS_KGDB
3837
help
3938
The eXcite is a smart camera platform manufactured by
4039
Basler Vision Technologies AG.
@@ -280,7 +279,6 @@ config PMC_MSP
280279
select SYS_HAS_CPU_MIPS32_R2
281280
select SYS_SUPPORTS_32BIT_KERNEL
282281
select SYS_SUPPORTS_BIG_ENDIAN
283-
select SYS_SUPPORTS_KGDB
284282
select IRQ_CPU
285283
select SERIAL_8250
286284
select SERIAL_8250_CONSOLE
@@ -306,7 +304,6 @@ config PMC_YOSEMITE
306304
select SYS_SUPPORTS_64BIT_KERNEL
307305
select SYS_SUPPORTS_BIG_ENDIAN
308306
select SYS_SUPPORTS_HIGHMEM
309-
select SYS_SUPPORTS_KGDB
310307
select SYS_SUPPORTS_SMP
311308
help
312309
Yosemite is an evaluation board for the RM9000x2 processor
@@ -359,7 +356,6 @@ config SGI_IP27
359356
select SYS_HAS_CPU_R10000
360357
select SYS_SUPPORTS_64BIT_KERNEL
361358
select SYS_SUPPORTS_BIG_ENDIAN
362-
select SYS_SUPPORTS_KGDB
363359
select SYS_SUPPORTS_NUMA
364360
select SYS_SUPPORTS_SMP
365361
select GENERIC_HARDIRQS_NO__DO_IRQ
@@ -475,7 +471,6 @@ config SIBYTE_SWARM
475471
select SYS_HAS_CPU_SB1
476472
select SYS_SUPPORTS_BIG_ENDIAN
477473
select SYS_SUPPORTS_HIGHMEM
478-
select SYS_SUPPORTS_KGDB
479474
select SYS_SUPPORTS_LITTLE_ENDIAN
480475
select ZONE_DMA32 if 64BIT
481476

@@ -868,7 +863,6 @@ config SOC_PNX8550
868863
select SYS_HAS_EARLY_PRINTK
869864
select SYS_SUPPORTS_32BIT_KERNEL
870865
select GENERIC_HARDIRQS_NO__DO_IRQ
871-
select SYS_SUPPORTS_KGDB
872866
select GENERIC_GPIO
873867

874868
config SWAP_IO_SPACE

‎arch/mips/Kconfig.debug‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,6 @@ config SMTC_IDLE_HOOK_DEBUG
3434
arch/mips/kernel/smtc.c. This debugging option result in significant
3535
overhead so should be disabled in production kernels.
3636

37-
config KGDB
38-
bool "Remote GDB kernel debugging"
39-
depends on DEBUG_KERNEL && SYS_SUPPORTS_KGDB
40-
select DEBUG_INFO
41-
help
42-
If you say Y here, it will be possible to remotely debug the MIPS
43-
kernel using gdb. This enlarges your kernel image disk size by
44-
several megabytes and requires a machine with more than 16 MB,
45-
better 32 MB RAM to avoid excessive linking time. This is only
46-
useful for kernel hackers. If unsure, say N.
47-
48-
config SYS_SUPPORTS_KGDB
49-
bool
50-
51-
config GDB_CONSOLE
52-
bool "Console output to GDB"
53-
depends on KGDB
54-
help
55-
If you are using GDB for remote debugging over a serial port and
56-
would like kernel messages to be formatted into GDB $O packets so
57-
that GDB prints them as program output, say 'Y'.
58-
5937
config SB1XXX_CORELIS
6038
bool "Corelis Debugger"
6139
depends on SIBYTE_SB1xxx_SOC

‎arch/mips/au1000/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,3 @@ config SOC_AU1X00
134134
select SYS_HAS_CPU_MIPS32_R1
135135
select SYS_SUPPORTS_32BIT_KERNEL
136136
select SYS_SUPPORTS_APM_EMULATION
137-
select SYS_SUPPORTS_KGDB

‎arch/mips/au1000/common/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ obj-y += prom.o irq.o puts.o time.o reset.o \
99
au1xxx_irqmap.o clocks.o platform.o power.o setup.o \
1010
sleeper.o cputable.o dma.o dbdma.o gpio.o
1111

12-
obj-$(CONFIG_KGDB) += dbg_io.o
1312
obj-$(CONFIG_PCI) += pci.o
1413

1514
EXTRA_CFLAGS += -Werror

‎arch/mips/au1000/common/dbg_io.c‎

Lines changed: 0 additions & 109 deletions
This file was deleted.

‎arch/mips/basler/excite/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
obj-$(CONFIG_BASLER_EXCITE) += excite_irq.o excite_prom.o excite_setup.o \
66
excite_device.o excite_procfs.o
77

8-
obj-$(CONFIG_KGDB) += excite_dbg_io.o
98
obj-m += excite_iodev.o

‎arch/mips/basler/excite/excite_dbg_io.c‎

Lines changed: 0 additions & 121 deletions
This file was deleted.

‎arch/mips/basler/excite/excite_irq.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ void __init arch_init_irq(void)
5050
mips_cpu_irq_init();
5151
rm7k_cpu_irq_init();
5252
rm9k_cpu_irq_init();
53-
54-
#ifdef CONFIG_KGDB
55-
excite_kgdb_init();
56-
#endif
5753
}
5854

5955
asmlinkage void plat_irq_dispatch(void)
@@ -90,9 +86,6 @@ asmlinkage void plat_irq_dispatch(void)
9086
msgint = msgintflags & msgintmask & (0x1 << (TITAN_MSGINT % 0x20));
9187
if ((pending & (1 << TITAN_IRQ)) && msgint) {
9288
ocd_writel(msgint, INTP0Clear0 + (TITAN_MSGINT / 0x20 * 0x10));
93-
#if defined(CONFIG_KGDB)
94-
excite_kgdb_inthdl();
95-
#endif
9689
do_IRQ(TITAN_IRQ);
9790
return;
9891
}

‎arch/mips/basler/excite/excite_setup.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ static int __init excite_init_console(void)
9595
/* Take the DUART out of reset */
9696
titan_writel(0x00ff1cff, CPRR);
9797

98-
#if defined(CONFIG_KGDB) || (CONFIG_SERIAL_8250_NR_UARTS > 1)
98+
#if (CONFIG_SERIAL_8250_NR_UARTS > 1)
9999
/* Enable both ports */
100100
titan_writel(MASK_SER0 | MASK_SER1, UACFG);
101101
#else
102102
/* Enable port #0 only */
103103
titan_writel(MASK_SER0, UACFG);
104-
#endif /* defined(CONFIG_KGDB) */
104+
#endif
105105

106106
/*
107107
* Set up serial port #0. Do not use autodetection; the result is

‎arch/mips/configs/db1000_defconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,6 @@ CONFIG_ENABLE_MUST_CHECK=y
10921092
CONFIG_LOG_BUF_SHIFT=14
10931093
CONFIG_CROSSCOMPILE=y
10941094
CONFIG_CMDLINE=""
1095-
CONFIG_SYS_SUPPORTS_KGDB=y
10961095

10971096
#
10981097
# Security options

0 commit comments

Comments
 (0)