diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2011-09-02 17:36:01 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2011-09-02 17:36:01 +0000 |
| commit | e53e8455f02cf9aacb6dc64b0ff1e56dfe40e479 (patch) | |
| tree | 426bb13e41a27a7c7950cb24686a0d8de7e589e1 | |
| parent | d2e17ce9060fc7cf5f1bdb778ea1517aa0a8c733 (diff) | |
Notes
| -rw-r--r-- | sys/dev/xen/console/console.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/xen/console/console.c b/sys/dev/xen/console/console.c index d61408284800..5a14623d1c30 100644 --- a/sys/dev/xen/console/console.c +++ b/sys/dev/xen/console/console.c @@ -70,6 +70,10 @@ static int rc, rp; static unsigned int cnsl_evt_reg; static unsigned int wc, wp; /* write_cons, write_prod */ +#ifdef KDB +static int xc_altbrk; +#endif + #define CDEV_MAJOR 12 #define XCUNIT(x) (dev2unit(x)) #define ISTTYOPEN(tp) ((tp) && ((tp)->t_state & TS_ISOPEN)) @@ -268,8 +272,12 @@ xencons_rx(char *buf, unsigned len) #endif ) { tty_lock(tp); - for (i = 0; i < len; i++) + for (i = 0; i < len; i++) { +#ifdef KDB + kdb_alt_break(buf[i], &xc_altbrk); +#endif ttydisc_rint(tp, buf[i], 0); + } ttydisc_rint_done(tp); tty_unlock(tp); } else { |
