kgdb: unify kgdb on serial
PATCH 1/1 kgdb: unify kgdb on serial
unify kgdb serial implementatin when we kgdb over the main serial interface (serial_{getc,putc,puts})
introduce CONFIG_KGDB_ON_SERIAL for this purpose otherwise use as curently CONFIG_KGDB_SER_INDEX to define the serial port to use
--- board/Marvell/common/serial.c | 26 -------- board/amirix/ap1000/serial.c | 26 -------- board/esd/cpci750/serial.c | 26 -------- board/evb64260/serial.c | 31 ---------- board/ml2/serial.c | 26 -------- board/prodrive/p3mx/serial.c | 26 -------- board/xilinx/ml300/serial.c | 31 ---------- common/Makefile | 1 + .../p3mx/serial.c => common/kgdb_on_serial.c | 64 ++----------------- cpu/i386/serial.c | 39 +----------- cpu/ppc4xx/4xx_uart.c | 39 +----------- include/configs/CPCI750.h | 1 + include/configs/DB64360.h | 1 + include/configs/DB64460.h | 1 + include/configs/EVB64260.h | 1 + include/configs/ML2.h | 1 + include/configs/P3G4.h | 1 + include/configs/VCMA9.h | 2 +- include/configs/ZUMA.h | 1 + include/configs/actux1.h | 2 +- include/configs/actux2.h | 2 +- include/configs/actux3.h | 2 +- include/configs/actux4.h | 2 +- include/configs/davinci_dvevm.h | 2 +- include/configs/davinci_schmoogie.h | 2 +- include/configs/davinci_sffsdr.h | 2 +- include/configs/davinci_sonata.h | 2 +- include/configs/lpd7a400.h | 2 +- include/configs/lpd7a404.h | 2 +- include/configs/mx1ads.h | 2 +- include/configs/ns9750dev.h | 2 +- include/configs/omap1510inn.h | 2 +- include/configs/omap1610h2.h | 2 +- include/configs/omap1610inn.h | 2 +- include/configs/omap5912osk.h | 2 +- include/configs/omap730p2.h | 2 +- include/configs/p3mx.h | 1 + include/configs/sbc2410x.h | 2 +- include/configs/smdk2400.h | 2 +- include/configs/smdk2410.h | 2 +- include/configs/smdk6400.h | 2 +- include/configs/trab.h | 2 +- include/configs/xaeniax.h | 2 +- 43 files changed, 46 insertions(+), 345 deletions(-) copy board/prodrive/p3mx/serial.c => common/kgdb_on_serial.c (57%)
board/Marvell/common/serial.c +0 -26
@@ -144,29 +144,3 @@ void serial_puts (const char *s)serial_putc (*s++); } } - -#if defined(CONFIG_CMD_KGDB ) -void kgdb_serial_init (void ) -{ -} - -void putDebugChar (int c) -{ -serial_putc (c); -} - -void putDebugStr (const char *str) -{ -serial_puts (str); -} - -int getDebugChar (void ) -{ -return serial_getc (); -} - -void kgdb_interruptible (int yes) -{ -return ; -} -#endif
board/amirix/ap1000/serial.c +0 -26
@@ -83,29 +83,3 @@ void serial_puts (const char *s)serial_putc (*s++); } } - -#if defined(CONFIG_CMD_KGDB ) -void kgdb_serial_init (void ) -{ -} - -void putDebugChar (int c) -{ -serial_putc (c); -} - -void putDebugStr (const char *str) -{ -serial_puts (str); -} - -int getDebugChar (void ) -{ -return serial_getc (); -} - -void kgdb_interruptible (int yes) -{ -return ; -} -#endif
board/esd/cpci750/serial.c +0 -26
@@ -79,29 +79,3 @@ void serial_puts (const char *s)serial_putc (*s++); } } - -#if defined(CONFIG_CMD_KGDB ) -void kgdb_serial_init (void ) -{ -} - -void putDebugChar (int c) -{ -serial_putc (c); -} - -void putDebugStr (const char *str) -{ -serial_puts (str); -} - -int getDebugChar (void ) -{ -return serial_getc (); -} - -void kgdb_interruptible (int yes) -{ -return ; -} -#endif
board/evb64260/serial.c +0 -31
@@ -152,34 +152,3 @@ serial_puts (const char *s)serial_putc (*s++); } } - -#if defined(CONFIG_CMD_KGDB ) -void -kgdb_serial_init (void ) -{ -} - -void -putDebugChar (int c) -{ -serial_putc (c); -} - -void -putDebugStr (const char *str) -{ -serial_puts (str); -} - -int -getDebugChar (void ) -{ -return serial_getc (); -} - -void -kgdb_interruptible (int yes) -{ -return ; -} -#endif
board/ml2/serial.c +0 -26
@@ -87,29 +87,3 @@ void serial_puts (const char *s)serial_putc (*s++); } } - -#if defined(CONFIG_CMD_KGDB ) -void kgdb_serial_init (void ) -{ -} - -void putDebugChar (int c) -{ -serial_putc (c); -} - -void putDebugStr (const char *str) -{ -serial_puts (str); -} - -int getDebugChar (void ) -{ -return serial_getc (); -} - -void kgdb_interruptible (int yes) -{ -return ; -} -#endif
board/prodrive/p3mx/serial.c +0 -26
@@ -79,29 +79,3 @@ void serial_puts (const char *s)serial_putc (*s++); } } - -#if defined(CONFIG_CMD_KGDB ) -void kgdb_serial_init (void ) -{ -} - -void putDebugChar (int c) -{ -serial_putc (c); -} - -void putDebugStr (const char *str) -{ -serial_puts (str); -} - -int getDebugChar (void ) -{ -return serial_getc (); -} - -void kgdb_interruptible (int yes) -{ -return ; -} -#endif
board/xilinx/ml300/serial.c +0 -31
@@ -121,34 +121,3 @@ serial_puts(const char *s)serial_putc (*s++); } } - -#if defined(CONFIG_CMD_KGDB ) -void -kgdb_serial_init (void ) -{ -} - -void -putDebugChar (int c) -{ -serial_putc (c); -} - -void -putDebugStr (const char *str) -{ -serial_puts (str); -} - -int -getDebugChar (void ) -{ -return serial_getc (); -} - -void -kgdb_interruptible (int yes) -{ -return ; -} -#endif
common/Makefile +1 -0
@@ -153,6 +153,7 @@ COBJS-$(CONFIG_CMD_DOC) += docecc.o COBJS-$(CONFIG_CONSOLE_MUX) += iomux.o COBJS-y += flash.o COBJS-$(CONFIG_CMD_KGDB) += kgdb.o +COBJS-$(CONFIG_KGDB_ON_SERIAL) += kgdb_on_serial.o COBJS-$(CONFIG_LCD) += lcd.o COBJS-$(CONFIG_LYNXKDI) += lynxkdi.o COBJS-$(CONFIG_UPDATE_TFTP) += update.o
common/kgdb_on_serial.c renamed from board/prodrive/p3mx/serial.c +7 -57
85 lines not on this page · raw message
cpu/i386/serial.c +3 -36
@@ -394,16 +394,11 @@ int serial_buffered_tstc(void)#endif /* CONFIG_SERIAL_SOFTWARE_FIFO */ -#if defined(CONFIG_CMD_KGDB) +#if defined(CONFIG_CMD_KGDB ) && (CONFIG_KGDB_SER_INDEX &2 )/* - AS HARNOIS : according to CONFIG_KGDB_SER_INDEX kgdb uses serial port - number 0 or number 1 - - if CONFIG_KGDB_SER_INDEX = 1 => serial port number 0 : - configuration has been already done - - if CONFIG_KGDB_SER_INDEX = 2 => serial port number 1 : - configure port 1 for serial I/O with rate = CONFIG_KGDB_BAUDRATE +* use the serial number 1 +* configure port 1 for serial I/O with rate = CONFIG_KGDB_BAUDRATE */ -#if (CONFIG_KGDB_SER_INDEX & 2)void kgdb_serial_init (void ) {volatile char val;
@@ -472,32 +467,4 @@ void kgdb_interruptible(int yes) {return ; } - -#else /* ! (CONFIG_KGDB_SER_INDEX & 2) */ - -void kgdb_serial_init (void ) -{ -serial_printf ("[on serial] " ); -} - -void putDebugChar (int c) -{ -serial_putc (c); -} - -void putDebugStr (const char *str) -{ -serial_puts (str); -} - -int getDebugChar (void ) -{ -return serial_getc (); -} - -void kgdb_interruptible (int yes) -{ -return ; -} -#endif /* (CONFIG_KGDB_SER_INDEX & 2) */ #endif
cpu/ppc4xx/4xx_uart.c +3 -36
@@ -644,16 +644,11 @@ int serial_buffered_tstc (void)#endif /* CONFIG_SERIAL_SOFTWARE_FIFO */ -#if defined(CONFIG_CMD_KGDB) +#if defined(CONFIG_CMD_KGDB ) && (CONFIG_KGDB_SER_INDEX &2 )/* - AS HARNOIS : according to CONFIG_KGDB_SER_INDEX kgdb uses serial port - number 0 or number 1 - - if CONFIG_KGDB_SER_INDEX = 1 => serial port number 0 : - configuration has been already done - - if CONFIG_KGDB_SER_INDEX = 2 => serial port number 1 : - configure port 1 for serial I/O with rate = CONFIG_KGDB_BAUDRATE +* use serial port number 1 : +* configure port 1 for serial I/O with rate = CONFIG_KGDB_BAUDRATE */ -#if (CONFIG_KGDB_SER_INDEX & 2)void kgdb_serial_init (void ) {u8 val;
@@ -722,34 +717,6 @@ void kgdb_interruptible (int yes) {return ; } - -#else /* ! (CONFIG_KGDB_SER_INDEX & 2) */ - -void kgdb_serial_init (void ) -{ -serial_printf ("[on serial] " ); -} - -void putDebugChar (int c) -{ -serial_putc (c); -} - -void putDebugStr (const char *str) -{ -serial_puts (str); -} - -int getDebugChar (void ) -{ -return serial_getc (); -} - -void kgdb_interruptible (int yes) -{ -return ; -} -#endif /* (CONFIG_KGDB_SER_INDEX & 2) */ #endif
include/configs/CPCI750.h +1 -0
@@ -189,6 +189,7 @@#define CONFIG_SYS_LONGHELP /* undef to save memory */ #define CONFIG_SYS_PROMPT "=> "/* Monitor Command Prompt */ #if defined(CONFIG_CMD_KGDB ) +#define CONFIG_KGDB_ON_SERIAL #define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ #else #define CONFIG_SYS_CBSIZE 256/* Console I/O Buffer Size */
include/configs/DB64360.h +1 -0
@@ -273,6 +273,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"#define CONFIG_SYS_LONGHELP /* undef to save memory */ #define CONFIG_SYS_PROMPT "=> "/* Monitor Command Prompt */ #if defined(CONFIG_CMD_KGDB ) +#define CONFIG_KGDB_ON_SERIAL #define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ #else #define CONFIG_SYS_CBSIZE 256/* Console I/O Buffer Size */
include/configs/DB64460.h +1 -0
@@ -211,6 +211,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"#define CONFIG_SYS_LONGHELP /* undef to save memory */ #define CONFIG_SYS_PROMPT "=> "/* Monitor Command Prompt */ #if defined(CONFIG_CMD_KGDB ) +#define CONFIG_KGDB_ON_SERIAL #define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ #else #define CONFIG_SYS_CBSIZE 256/* Console I/O Buffer Size */
include/configs/EVB64260.h +1 -0
@@ -127,6 +127,7 @@#define CONFIG_SYS_LONGHELP /* undef to save memory */ #define CONFIG_SYS_PROMPT "=> "/* Monitor Command Prompt */ #if defined(CONFIG_CMD_KGDB ) +#define CONFIG_KGDB_ON_SERIAL #define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ #else #define CONFIG_SYS_CBSIZE 256/* Console I/O Buffer Size */
include/configs/ML2.h +1 -0
@@ -114,6 +114,7 @@#define CONFIG_SYS_LONGHELP /* undef to save memory */ #define CONFIG_SYS_PROMPT "=> "/* Monitor Command Prompt */ #if defined(CONFIG_CMD_KGDB ) +#define CONFIG_KGDB_ON_SERIAL #define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ #else #define CONFIG_SYS_CBSIZE 256/* Console I/O Buffer Size */
include/configs/P3G4.h +1 -0
@@ -154,6 +154,7 @@#define CONFIG_SYS_LONGHELP /* undef to save memory */ #define CONFIG_SYS_PROMPT "=> "/* Monitor Command Prompt */ #if defined(CONFIG_CMD_KGDB ) +#define CONFIG_KGDB_ON_SERIAL #define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ #else #define CONFIG_SYS_CBSIZE 256/* Console I/O Buffer Size */
include/configs/VCMA9.h +1 -1
@@ -155,7 +155,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ /* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/ZUMA.h +1 -0
@@ -149,6 +149,7 @@#define CONFIG_SYS_LONGHELP /* undef to save memory */ #define CONFIG_SYS_PROMPT "=> "/* Monitor Command Prompt */ #if defined(CONFIG_CMD_KGDB ) +#define CONFIG_KGDB_ON_SERIAL #define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ #else #define CONFIG_SYS_CBSIZE 256/* Console I/O Buffer Size */
include/configs/actux1.h +1 -1
@@ -77,7 +77,7 @@#if defined(CONFIG_CMD_KGDB )# define CONFIG_KGDB_BAUDRATE 230400/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX 1 +# define CONFIG_KGDB_ON_SERIAL #endif /* Miscellaneous configurable options */
include/configs/actux2.h +1 -1
@@ -68,7 +68,7 @@#if defined(CONFIG_CMD_KGDB )# define CONFIG_KGDB_BAUDRATE 230400/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX 1 +# define CONFIG_KGDB_ON_SERIAL #endif /* Miscellaneous configurable options */
include/configs/actux3.h +1 -1
@@ -66,7 +66,7 @@#if defined(CONFIG_CMD_KGDB )# define CONFIG_KGDB_BAUDRATE 230400/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX 1 +# define CONFIG_KGDB_ON_SERIAL #endif /* Miscellaneous configurable options */
include/configs/actux4.h +1 -1
@@ -65,7 +65,7 @@#if defined(CONFIG_CMD_KGDB )# define CONFIG_KGDB_BAUDRATE 230400/* which serial port to use */ -# define CONFIG_KGDB_SER_INDEX 1 +# define CONFIG_KGDB_ON_SERIAL #endif /* Miscellaneous configurable options */
include/configs/davinci_dvevm.h +1 -1
@@ -235,6 +235,6 @@/*=======================*/ #ifdef CONFIG_CMD_KGDB #define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif #endif /* __CONFIG_H */
include/configs/davinci_schmoogie.h +1 -1
@@ -153,6 +153,6 @@/*=======================*/ #ifdef CONFIG_CMD_KGDB #define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif #endif /* __CONFIG_H */
include/configs/davinci_sffsdr.h +1 -1
@@ -146,6 +146,6 @@/* KGDB support (if any) */ #ifdef CONFIG_CMD_KGDB #define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif #endif /* __CONFIG_H */
include/configs/davinci_sonata.h +1 -1
@@ -205,6 +205,6 @@/*=======================*/ #ifdef CONFIG_CMD_KGDB #define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif #endif /* __CONFIG_H */
include/configs/lpd7a400.h +1 -1
@@ -83,7 +83,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ /* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/lpd7a404.h +1 -1
@@ -83,7 +83,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ /* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/mx1ads.h +1 -1
@@ -107,7 +107,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ /* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/ns9750dev.h +1 -1
@@ -106,7 +106,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ /* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/omap1510inn.h +1 -1
@@ -114,7 +114,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ /* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/omap1610h2.h +1 -1
@@ -108,7 +108,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/omap1610inn.h +1 -1
@@ -113,7 +113,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/omap5912osk.h +1 -1
@@ -117,7 +117,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/omap730p2.h +1 -1
@@ -124,7 +124,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* Speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 1/* Which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* Which serial port to use */ #endif /*
include/configs/p3mx.h +1 -0
@@ -291,6 +291,7 @@#define CONFIG_SYS_LONGHELP /* undef to save memory */ #define CONFIG_SYS_PROMPT "=> "/* Monitor Command Prompt */ #if defined(CONFIG_CMD_KGDB ) +#define CONFIG_KGDB_ON_SERIAL #define CONFIG_SYS_CBSIZE 1024/* Console I/O Buffer Size */ #else #define CONFIG_SYS_CBSIZE 256/* Console I/O Buffer Size */
include/configs/sbc2410x.h +1 -1
@@ -121,7 +121,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ /* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/smdk2400.h +1 -1
@@ -123,7 +123,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ /* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/smdk2410.h +1 -1
@@ -106,7 +106,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ /* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/smdk6400.h +1 -1
@@ -120,7 +120,7 @@#if (CONFIG_COMMANDS &CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/trab.h +1 -1
@@ -298,7 +298,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ /* what's this ? it's not used anywhere */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
include/configs/xaeniax.h +1 -1
@@ -105,7 +105,7 @@#if defined(CONFIG_CMD_KGDB )#define CONFIG_KGDB_BAUDRATE 115200/* speed to run kgdb serial port */ -#define CONFIG_KGDB_SER_INDEX 1/* which serial port to use */ +#define CONFIG_KGDB_ON_SERIAL /* which serial port to use */ #endif /*
Signature · 1 line
1.6.1.3
PATCH 1/1 kgdb: unify kgdb on serial
Dear Jean-Christophe PLAGNIOL-VILLARD,
Quoted 8 lines · In message <[email protected]> you wrote:
unify kgdb serial implementatin when we kgdb over the main serial interface (serial_{getc,putc,puts})
introduce
CONFIG_KGDB_ON_SERIALfor this purpose otherwise use as curentlyCONFIG_KGDB_SER_INDEXto define the serial port to useSigned-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
...
The new CONFIG_KGDB_ON_SERIAL variable needs to be documented in the README, and the exact use of CONFIG_KGDB_SER_INDEX in the new context needs to be explained, too.
Quoted 10 lines
cpu/i386/serial.c +1
-1@@ -394,16 +394,11 @@ int serial_buffered_tstc(void)#endif /* CONFIG_SERIAL_SOFTWARE_FIFO */ -#if defined(CONFIG_CMD_KGDB ) +#if defined(CONFIG_CMD_KGDB ) && (CONFIG_KGDB_SER_INDEX &2 )
cpu/i386/serial.c int serial_buffered_tstc(void) · line 401
Quoted 10 lines
cpu/i386/serial.c +2
-6/* -AS HARNOIS : according to CONFIG_KGDB_SER_INDEX kgdb uses serial port -number 0 or number 1 -- if CONFIG_KGDB_SER_INDEX = 1 => serial port number 0 : -configuration has been already done -- if CONFIG_KGDB_SER_INDEX = 2 => serial port number 1 : -configure port 1 for serial I/O with rate = CONFIG_KGDB_BAUDRATE +* use the serial number 1 +* configure port 1 for serial I/O with rate = CONFIG_KGDB_BAUDRATE */
I don;t understand the use of "CONFIG_KGDB_SER_INDEX & 2" here; the old (deleted) comment would be helpful, but I don;t understand if it still applies with your changes.
This needs better documentation / comments.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "A fractal is by definition a set for which the Hausdorff Besicovitch dimension strictly exceeds the topological dimension." - Mandelbrot, _The Fractal Geometry of Nature_