linuxppc_2_4_devel Spruce KGDB patch
If no one objects to this patch, would a power that be please push it.
Mark
--
===== arch/ppc/config.in 1.165 vs edited =====
arch/ppc/config.in +7 -1
@@ -225,6 +225,11 @@ define_bool CONFIG_EPIC_SERIAL_MODE y fi +if [ "$CONFIG_SPRUCE" = "y" ]; then + define_bool CONFIG_GEN550_KGDB y + define_bool CONFIG_GEN550_PROGRESS y +fi + if [ "$CONFIG_LOPEC" = "y" ]; then define_bool CONFIG_EPIC_SERIAL_MODE y define_bool CONFIG_GEN550_KGDB y
@@ -756,7 +761,8 @@ if [ "$CONFIG_MCPN765" = "y" -o "$CONFIG_SANDPOINT" = "y" \ -o "$CONFIG_ZX4500" = "y" -o "$CONFIG_PRPMC800" = "y" \ -o "$CONFIG_4xx" = "y" -o "$CONFIG_GT64260" = "y" \ - -o "$CONFIG_LOPEC" = "y" -o "$CONFIG_PPLUS" = "y" ]; then + -o "$CONFIG_LOPEC" = "y" -o "$CONFIG_PPLUS" = "y" \ + -o "$CONFIG_SPRUCE" = "y" ]; then bool 'Support for early boot texts over serial port' CONFIG_SERIAL_TEXT_DEBUG fi endmenu
===== arch/ppc/configs/spruce_defconfig 1.6 vs edited =====
arch/ppc/configs/spruce_defconfig +47 -2
96 lines not on this page · raw message
===== arch/ppc/kernel/gen550_dbg.c 1.3 vs edited =====
arch/ppc/kernel/gen550_dbg.c +2 -12
@@ -56,7 +56,6 @@unsigned long serial_init (int chan,void *ignored) {unsigned long com_port; -unsigned char lcr, dlm;/* We need to find out which type io we're expecting. If it's * 'SERIAL_IO_PORT', we get an offset from the isa_io_base.
@@ -80,23 +79,14 @@/* How far apart the registers are. */ shift = rs_table[chan].iomem_reg_shift; -/* save the LCR */ - lcr =serial_inb (com_port + (UART_LCR << shift));/* Access baud rate */ serial_outb (com_port + (UART_LCR << shift),0x80 ); - dlm =serial_inb (com_port + (UART_DLM << shift)); -/* -* Test if serial port is unconfigured. -* We assume that no-one uses less than 110 baud or -* less than 7 bits per character these days. -* -- paulus. -*/ /* Input clock. */ serial_outb (com_port + (UART_DLL << shift), - (BASE_BAUD /SERIAL_BAUD ) &0xFF ); + (rs_table[chan].baud_base /SERIAL_BAUD ) &0xFF );serial_outb (com_port + (UART_DLM << shift), - (BASE_BAUD /SERIAL_BAUD ) >>8 ); + (rs_table[chan].baud_base /SERIAL_BAUD ) >>8 );/* 8 data, 1 stop, no parity */ serial_outb (com_port + (UART_LCR << shift),0x03 );/* RTS/DTR */
===== arch/ppc/platforms/spruce_setup.c 1.2 vs edited =====
arch/ppc/platforms/spruce_setup.c +84 -49
169 lines not on this page · raw message