Module Name:    src
Committed By:   toshii
Date:           Wed Nov  4 14:39:17 UTC 2009

Modified Files:
        src/sys/arch/x86/x86: mpacpi.c

Log Message:
Don't return an error if the _PIC method isn't found.
It's an optional method and not found in kvm/qemu.


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 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.78 src/sys/arch/x86/x86/mpacpi.c:1.79
--- src/sys/arch/x86/x86/mpacpi.c:1.78	Wed Sep 16 10:47:54 2009
+++ src/sys/arch/x86/x86/mpacpi.c	Wed Nov  4 14:39:17 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: mpacpi.c,v 1.78 2009/09/16 10:47:54 mlelstv Exp $	*/
+/*	$NetBSD: mpacpi.c,v 1.79 2009/11/04 14:39:17 toshii Exp $	*/
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpacpi.c,v 1.78 2009/09/16 10:47:54 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpacpi.c,v 1.79 2009/11/04 14:39:17 toshii Exp $");
 
 #include "acpica.h"
 #include "opt_acpi.h"
@@ -1069,7 +1069,7 @@
 		arg.Type = ACPI_TYPE_INTEGER;
 		arg.Integer.Value = 1;	/* I/O APIC (0 = PIC, 2 = IOSAPIC) */
 		rv = AcpiEvaluateObject(NULL, "\\_PIC", &arglist, NULL);
-		if (ACPI_FAILURE(rv)) {
+		if (ACPI_FAILURE(rv) && rv != AE_NOT_FOUND) {
 			if (mp_verbose)
 				printf("mpacpi: switch to APIC mode failed\n");
 			return 0;

Reply via email to