Module Name: src Committed By: dholland Date: Wed Mar 16 06:02:37 UTC 2011
Modified Files: src/sys/arch/x86/x86: mpacpi.c Log Message: Fix build with no pchb. From Aran Clauson in PR 44720. To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90 src/sys/arch/x86/x86/mpacpi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/x86/mpacpi.c diff -u src/sys/arch/x86/x86/mpacpi.c:1.89 src/sys/arch/x86/x86/mpacpi.c:1.90 --- src/sys/arch/x86/x86/mpacpi.c:1.89 Sat Aug 7 09:41:19 2010 +++ src/sys/arch/x86/x86/mpacpi.c Wed Mar 16 06:02:36 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: mpacpi.c,v 1.89 2010/08/07 09:41:19 jruoho Exp $ */ +/* $NetBSD: mpacpi.c,v 1.90 2011/03/16 06:02:36 dholland Exp $ */ /* * Copyright (c) 2003 Wasabi Systems, Inc. @@ -36,7 +36,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mpacpi.c,v 1.89 2010/08/07 09:41:19 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mpacpi.c,v 1.90 2011/03/16 06:02:36 dholland Exp $"); #include "acpica.h" #include "opt_acpi.h" @@ -524,8 +524,10 @@ { ACPI_STATUS rv; ACPI_INTEGER val; +#if NPCHB > 0 pcireg_t class, dvid; pcitag_t tag; +#endif rv = acpi_eval_integer(handle, METHOD_NAME__BBN, &val); if (ACPI_SUCCESS(rv))