diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-02-18 17:10:11 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-02-18 17:10:11 +0000 |
commit | cd40c4af7f6b2f76a48c527c36bb576d98a06696 (patch) | |
tree | 60444d9e267112645647f8db34053856f3b7f5db /sys/arch/i386/stand | |
parent | 21a8622379f6a3e8e6dd8a4228fb1180469bf121 (diff) |
full support for a serial console.
iface addition: pass serial speed from /boot.
tested on 4 /boot+kernel permutations.
also, niklas@ said he likes it
bugs: any printfs before cninit() will go to the
default console, which is mon/kbd, but are usually
only sorts of debugging messages (like bios_memmap load).
Diffstat (limited to 'sys/arch/i386/stand')
-rw-r--r-- | sys/arch/i386/stand/libsa/exec_i386.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/i386/stand/libsa/exec_i386.c b/sys/arch/i386/stand/libsa/exec_i386.c index 2d52968fb52..afa6ae63103 100644 --- a/sys/arch/i386/stand/libsa/exec_i386.c +++ b/sys/arch/i386/stand/libsa/exec_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_i386.c,v 1.24 1998/09/27 17:41:18 mickey Exp $ */ +/* $OpenBSD: exec_i386.c,v 1.25 2000/02/18 17:10:10 mickey Exp $ */ /* * Copyright (c) 1997-1998 Michael Shalayeff @@ -59,6 +59,12 @@ machdep_exec(xp, howto, loadaddr) dev_t bootdev = bootdev_dip->bootdev; size_t ac = BOOTARG_LEN; caddr_t av = (caddr_t)BOOTARG_OFF; + bios_consdev_t cd; + extern int com_speed; /* from bioscons.c */ + + cd.consdev = cn_tab->cn_dev; + cd.conspeed = com_speed; + addbootarg(BOOTARG_CONSDEV, sizeof(cd), &cd); makebootargs(av, &ac); |