[xtensa-cvscommit] linux/arch/xtensa/platform-xt2000 gdb_hook.c,1.1,1.2
Brought to you by:
zankel
|
From: <sfo...@us...> - 2002-09-22 21:46:51
|
Update of /cvsroot/xtensa/linux/arch/xtensa/platform-xt2000
In directory usw-pr-cvs1:/tmp/cvs-serv1995/platform-xt2000
Modified Files:
gdb_hook.c
Log Message:
Parameterize serial port and baud rate for kgdb connection.
There are 2 new command line parameters recognized by kgdb:
"gdbbaud=<baud rate>", and "gdbttyS=<serial port>".
The defaults are gdbbaud=9600 and gdbttyS=1 if these parameters are not specified.
Index: gdb_hook.c
===================================================================
RCS file: /cvsroot/xtensa/linux/arch/xtensa/platform-xt2000/gdb_hook.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** gdb_hook.c 19 Sep 2002 07:06:12 -0000 1.1
--- gdb_hook.c 22 Sep 2002 21:46:48 -0000 1.2
***************
*** 18,21 ****
--- 18,23 ----
#include <asm/io.h>
+ extern int gdb_baud;
+
static struct serial_state rs_table[RS_TABLE_SIZE] = {
SERIAL_PORT_DFNS /* Defined in serial.h */
***************
*** 47,53 ****
}
! void rs_kgdb_hook(int tty_no) {
int t;
! struct serial_state *ser = &rs_table[tty_no];
kdb_port_info.state = ser;
--- 49,56 ----
}
! void rs_kgdb_hook(void) {
int t;
! extern int gdb_ttyS;
! struct serial_state *ser = &rs_table[gdb_ttyS];
kdb_port_info.state = ser;
***************
*** 84,93 ****
/*
! * and set the speed of the serial port
! * (currently hardwired to 9600 8N1
*/
! /* baud rate is fixed to 9600 (is this sufficient?)*/
! t = kdb_port_info.state->baud_base / 9600;
#if 0
--- 87,94 ----
/*
! * and set the speed of the serial port (hardwired to 8N1)
*/
! t = kdb_port_info.state->baud_base / gdb_baud;
#if 0
|