From 03d0daff730ff0f198359553449041bbf1b14e95 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 21 Oct 2011 20:49:40 +0000 Subject: Set mp_nbusses such that the newly added bounds checks on i386 and amd64 don't fail unconditionally. --- sys/dev/acpi/acpimadt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/acpi') diff --git a/sys/dev/acpi/acpimadt.c b/sys/dev/acpi/acpimadt.c index 23d8d32c1c5..8f435c624b2 100644 --- a/sys/dev/acpi/acpimadt.c +++ b/sys/dev/acpi/acpimadt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpimadt.c,v 1.24 2011/03/06 22:40:05 deraadt Exp $ */ +/* $OpenBSD: acpimadt.c,v 1.25 2011/10/21 20:49:39 kettenis Exp $ */ /* * Copyright (c) 2006 Mark Kettenis * @@ -212,6 +212,7 @@ acpimadt_attach(struct device *parent, struct device *self, void *aux) return; mp_busses = acpimadt_busses; + mp_nbusses = nitems(acpimadt_busses); mp_isa_bus = &acpimadt_isa_bus; lapic_boot_init(madt->local_apic_address); -- cgit v1.2.3