diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2015-09-12 23:03:31 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2015-09-12 23:03:31 +0000 |
commit | 7e0979fbcf34c857c8853501b922f15b6d54bc73 (patch) | |
tree | d1ac6d218c74d256fa15d40b24109b3ccecf1f59 /sys | |
parent | 06a72ea47cd10fd512ed9086d2d9cb513df20eb1 (diff) |
Restore SMBIOS detection in ISA. OK yasuoka@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/bios.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/bios.c b/sys/arch/amd64/amd64/bios.c index b1c58c31492..a2e0dc6648f 100644 --- a/sys/arch/amd64/amd64/bios.c +++ b/sys/arch/amd64/amd64/bios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bios.c,v 1.33 2015/09/03 03:13:56 yasuoka Exp $ */ +/* $OpenBSD: bios.c,v 1.34 2015/09/12 23:03:30 uebayasi Exp $ */ /* * Copyright (c) 2006 Gordon Willem Klok <gklok@cogeco.ca> * @@ -107,8 +107,8 @@ bios_attach(struct device *parent, struct device *self, void *aux) for (p = ISA_HOLE_VADDR(SMBIOS_START); p < (u_int8_t *)ISA_HOLE_VADDR(SMBIOS_END); p+= 16) { hdr = smbios_find(p); - if (hdr == NULL) - continue; + if (hdr != NULL) + break; } } |