summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-10-18 23:08:25 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-10-18 23:08:25 +0000
commit8ed1e559b7016d26aeaf4f1b64bcb4db1fe0a9da (patch)
tree13d65d85c3f81f509f74fb306f23eb398765f3fb /sys/arch/i386
parent917fcc1f9729af7aa5b0168acffb905f92d6bf77 (diff)
Scan SMBIOS before calling config_attach() to prevent unnecessary kernel print.
Written with jordan@ help. ok deraadt@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/mainbus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/mainbus.c b/sys/arch/i386/i386/mainbus.c
index 4f506e23f8a..0afc46b6c29 100644
--- a/sys/arch/i386/i386/mainbus.c
+++ b/sys/arch/i386/i386/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.18 2005/10/04 22:04:23 marco Exp $ */
+/* $OpenBSD: mainbus.c,v 1.19 2005/10/18 23:08:24 marco Exp $ */
/* $NetBSD: mainbus.c,v 1.21 1997/06/06 23:14:20 thorpej Exp $ */
/*
@@ -162,7 +162,8 @@ mainbus_attach(parent, self, aux)
mba.mba_iaa.iaa_name = "ipmi";
mba.mba_iaa.iaa_iot = I386_BUS_SPACE_IO;
mba.mba_iaa.iaa_memt = I386_BUS_SPACE_MEM;
- config_found(self, &mba.mba_iaa, mainbus_print);
+ if (ipmi_probe(&mba.mba_iaa))
+ config_found(self, &mba.mba_iaa, mainbus_print);
}
#endif