diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index c0fade393c58..1624f99558a0 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.370 1999/12/04 21:20:29 ragge Exp $ */ +/* $NetBSD: machdep.c,v 1.371 1999/12/13 16:30:15 drochner Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -170,6 +170,7 @@ extern struct proc *npxproc; #endif #include "vga.h" +#include "ega.h" #include "pcdisplay.h" #if (NVGA > 0) || (NPCDISPLAY > 0) #include @@ -178,6 +179,9 @@ extern struct proc *npxproc; #include #include #endif +#if (NEGA > 0) +#include +#endif #if (NPCDISPLAY > 0) #include #endif @@ -1994,13 +1998,17 @@ consinit() #endif consinfo = &default_consinfo; -#if (NPC > 0) || (NVT > 0) || (NVGA > 0) || (NPCDISPLAY > 0) +#if (NPC > 0) || (NVT > 0) || (NVGA > 0) || (NEGA > 0) || (NPCDISPLAY > 0) if (!strcmp(consinfo->devname, "pc")) { #if (NVGA > 0) if (!vga_cnattach(I386_BUS_SPACE_IO, I386_BUS_SPACE_MEM, -1, 1)) goto dokbd; #endif +#if (NEGA > 0) + if (!ega_cnattach(I386_BUS_SPACE_IO, I386_BUS_SPACE_MEM)) + goto dokbd; +#endif #if (NPCDISPLAY > 0) if (!pcdisplay_cnattach(I386_BUS_SPACE_IO, I386_BUS_SPACE_MEM)) goto dokbd;