diff options
author | yokota <yokota@FreeBSD.org> | 1999-06-29 17:34:16 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1999-06-29 17:34:16 +0000 |
commit | 8d2a7d799c009389f5143430a172812b968eee4a (patch) | |
tree | 5c00f7fdea53a5d042333cf5d85bdbff0d38e030 /sys/isa/sio.c | |
parent | 934ebfaf1b412e6004776b10b69d1494302264d3 (diff) | |
download | FreeBSD-src-8d2a7d799c009389f5143430a172812b968eee4a.zip FreeBSD-src-8d2a7d799c009389f5143430a172812b968eee4a.tar.gz |
Skip the device if it is disabled, when searching for a serial port
to be used for the kernel console in sccnprobe().
Diffstat (limited to 'sys/isa/sio.c')
-rw-r--r-- | sys/isa/sio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/isa/sio.c b/sys/isa/sio.c index 6c17bc1..3965789 100644 --- a/sys/isa/sio.c +++ b/sys/isa/sio.c @@ -2814,6 +2814,11 @@ siocnprobe(cp) for (unit = 0; unit < 16; unit++) { /* XXX need to know how many */ int flags; + int disabled; + if (resource_int_value("sio", unit, "disabled", &disabled) == 0) { + if (disabled) + continue; + } if (resource_int_value("sio", unit, "flags", &flags)) continue; if (COM_CONSOLE(flags) || COM_DEBUGGER(flags)) { |