summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-08-30 18:08:25 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-08-30 18:08:25 +0000
commitb72a438210f779065a62101ec255dc9dcdcb3e36 (patch)
treee3cef399459c5b4e22c2dc10060815e13cc13e7e /sys/arch/amd64
parenta79f62259ad692f4ee76b49aa48aafbb866bb702 (diff)
Don't try to attach efifb(4) on non-UEFI boots.
ok miod@, deraadt@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/mainbus.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/amd64/amd64/mainbus.c b/sys/arch/amd64/amd64/mainbus.c
index d75b6ccdb36..951fd69923b 100644
--- a/sys/arch/amd64/amd64/mainbus.c
+++ b/sys/arch/amd64/amd64/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.31 2015/08/30 10:05:09 yasuoka Exp $ */
+/* $OpenBSD: mainbus.c,v 1.32 2015/08/30 18:08:24 kettenis Exp $ */
/* $NetBSD: mainbus.c,v 1.1 2003/04/26 18:39:29 fvdl Exp $ */
/*
@@ -231,11 +231,13 @@ mainbus_attach(struct device *parent, struct device *self, void *aux)
if (isa_has_been_seen == 0)
config_found(self, &mba_iba, mainbus_print);
#endif
+
#if NEFIFB > 0
- mba.mba_busname = "efifb";
- config_found(self, &mba, mainbus_print);
+ if (bios_efiinfo != NULL) {
+ mba.mba_busname = "efifb";
+ config_found(self, &mba, mainbus_print);
+ }
#endif
-
}
int