summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1994-12-18 20:30:10 +0000
committerjoerg <joerg@FreeBSD.org>1994-12-18 20:30:10 +0000
commita1049f75bf8f7a542055d26c91470c9537bfae35 (patch)
treee7e0ab38780f298f3977436328b114a4de9a3a7b
parented32f08affec6e5f0204eeeaf5502e03b85cd48e (diff)
downloadFreeBSD-src-a1049f75bf8f7a542055d26c91470c9537bfae35.zip
FreeBSD-src-a1049f75bf8f7a542055d26c91470c9537bfae35.tar.gz
Insert a hook to initialize the serial port at the beginning of
boot(). This is needed so the "serialboot" stuff can share this file, too. Everything is #ifdef'ed so it evaluates to nothing when actually been built in the "biosboot" directory.
-rw-r--r--sys/i386/boot/biosboot/boot.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/i386/boot/biosboot/boot.c b/sys/i386/boot/biosboot/boot.c
index 9c9ce4c..290ec31 100644
--- a/sys/i386/boot/biosboot/boot.c
+++ b/sys/i386/boot/biosboot/boot.c
@@ -24,7 +24,7 @@
* the rights to redistribute these changes.
*
* from: Mach, [92/04/03 16:51:14 rvb]
- * $Id: boot.c,v 1.27 1994/11/26 09:08:48 phk Exp $
+ * $Id: boot.c,v 1.28 1994/12/18 19:14:13 bde Exp $
*/
@@ -65,12 +65,20 @@ char *names[] = {
};
#define NUMNAMES (sizeof(names)/sizeof(char *))
+#ifdef COMCONSOLE
+extern void init_serial(void);
+#endif
+
extern int end;
boot(drive)
int drive;
{
int loadflags, currname = 0, ret;
char *t;
+#ifdef COMCONSOLE
+ init_serial();
+#endif
+
/* Pick up the story from the Bios on geometry of disks */
OpenPOWER on IntegriCloud