aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kgdb.h
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2010-05-20 22:04:26 -0400
committerJason Wessel <jason.wessel@windriver.com>2010-05-20 22:04:26 -0400
commitefe2f29e324fd20e0449bcd6dc6dbe4734c2ba94 (patch)
treeff8b2d7eddbfee39aebf7a43c6125202b6bda6d7 /include/linux/kgdb.h
parent1cee5e35f15d0893be1ba944f1aec8676e43ab76 (diff)
kgdboc,kdb: Allow kdb to work on a non open console port
If kdb is open on a serial port that is not actually a console make sure to call the poll routines to emit and receive characters. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Acked-by: Martin Hicks <mort@sgi.com>
Diffstat (limited to 'include/linux/kgdb.h')
-rw-r--r--include/linux/kgdb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/kgdb.h b/include/linux/kgdb.h
index ee007ea341b8..6c784ab6856a 100644
--- a/include/linux/kgdb.h
+++ b/include/linux/kgdb.h
@@ -247,6 +247,8 @@ struct kgdb_arch {
247 * the I/O driver. 247 * the I/O driver.
248 * @post_exception: Pointer to a function that will do any cleanup work 248 * @post_exception: Pointer to a function that will do any cleanup work
249 * for the I/O driver. 249 * for the I/O driver.
250 * @is_console: 1 if the end device is a console 0 if the I/O device is
251 * not a console
250 */ 252 */
251struct kgdb_io { 253struct kgdb_io {
252 const char *name; 254 const char *name;
@@ -256,6 +258,7 @@ struct kgdb_io {
256 int (*init) (void); 258 int (*init) (void);
257 void (*pre_exception) (void); 259 void (*pre_exception) (void);
258 void (*post_exception) (void); 260 void (*post_exception) (void);
261 int is_console;
259}; 262};
260 263
261extern struct kgdb_arch arch_kgdb_ops; 264extern struct kgdb_arch arch_kgdb_ops;