If serial debugging in the boot monitor / kernel is enabled, don't touch
the serial line in use for it (mostly so that input isn't eaten by tty).
This commit is contained in:
parent
d0a2e6b2f4
commit
80f5eea8b8
1 changed files with 10 additions and 0 deletions
|
@ -445,9 +445,19 @@ tty_t *tp; /* which TTY */
|
|||
int line;
|
||||
port_t this_8250;
|
||||
int irq;
|
||||
char l[10];
|
||||
|
||||
/* Associate RS232 and TTY structures. */
|
||||
line = tp - &tty_table[NR_CONS];
|
||||
|
||||
/* See if kernel debugging is enabled; if so, don't initialize this
|
||||
* serial line, making tty not look at the irq and returning ENXIO
|
||||
* for all requests on it from userland. (The kernel will use it.)
|
||||
*/
|
||||
if(env_get_param(SERVARNAME, l, sizeof(l)-1) == OK && atoi(l) == line) {
|
||||
return;
|
||||
}
|
||||
|
||||
rs = tp->tty_priv = &rs_lines[line];
|
||||
rs->tty = tp;
|
||||
|
||||
|
|
Loading…
Reference in a new issue