diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2008-04-30 13:59:34 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2008-04-30 13:59:34 +0000 |
commit | 5824f2fa0be430951bedb7614b013d55b42681aa (patch) | |
tree | af48251f5d814a38b643597209e2b3bb1916e598 /sys/dev | |
parent | 9c7289cb79e29eac6e48dc178ba2a4b756ade788 (diff) |
fix serial console handling on amd64. currently only glass console ever
works, even if the boot loader is configured to use serial console.
after the changes jsing and i made, the initial probe of the serial port
was failing since the default base addres for the port is invalid. cos of
that the kernel would only ever consider the glass console for use. this
fixes it by reprobing the serial port if we get any config for it from the
boot loader.
advice on aesthetics from miod@
advice and ok from kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/comvar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h index 0c22660f9c8..c629d3d89c7 100644 --- a/sys/dev/ic/comvar.h +++ b/sys/dev/ic/comvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: comvar.h,v 1.43 2007/05/08 21:28:11 deraadt Exp $ */ +/* $OpenBSD: comvar.h,v 1.44 2008/04/30 13:59:32 dlg Exp $ */ /* $NetBSD: comvar.h,v 1.5 1996/05/05 19:50:47 christos Exp $ */ /* @@ -173,6 +173,7 @@ int kgdbintr(void *); void com_attach_subr(struct com_softc *); extern int comdefaultrate; +extern int comconsrate; extern int comconsfreq; extern bus_addr_t comconsaddr; extern bus_addr_t comsiraddr; |