Allow unichromefb(4) to be the system console.

This commit is contained in:
jmcneill 2006-08-02 01:44:50 +00:00
parent 051b75db82
commit 165e6acd89
1 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: consinit.c,v 1.10 2006/04/24 14:15:47 jmcneill Exp $ */
/* $NetBSD: consinit.c,v 1.11 2006/08/02 01:44:50 jmcneill Exp $ */
/*
* Copyright (c) 1998
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.10 2006/04/24 14:15:47 jmcneill Exp $");
__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.11 2006/08/02 01:44:50 jmcneill Exp $");
#include "opt_kgdb.h"
@ -76,6 +76,10 @@ __KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.10 2006/04/24 14:15:47 jmcneill Exp $
#if (NVESAFB > 0)
#include <arch/i386/bios/vesafbvar.h>
#endif
#include "unichromefb.h"
#if (NUNICHROMEFB > 0)
extern int unichromefb_cnattach(void);
#endif
#endif
#include "com.h"
@ -166,6 +170,10 @@ consinit()
if (!strcmp(consinfo->devname, "pc")) {
int error;
#if (NUNICHROMEFB > 0)
if (!unichromefb_cnattach())
goto dokbd;
#endif
#if (NVESAFB > 0)
if (!vesafb_cnattach())
goto dokbd;