Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Don't return an error if the _PIC method is...
details: https://anonhg.NetBSD.org/src/rev/4fdab11c0898
branches: trunk
changeset: 748745:4fdab11c0898
user: toshii <toshii%NetBSD.org@localhost>
date: Wed Nov 04 14:39:17 2009 +0000
description:
Don't return an error if the _PIC method isn't found.
It's an optional method and not found in kvm/qemu.
diffstat:
sys/arch/x86/x86/mpacpi.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 37472d23187b -r 4fdab11c0898 sys/arch/x86/x86/mpacpi.c
--- a/sys/arch/x86/x86/mpacpi.c Wed Nov 04 13:32:39 2009 +0000
+++ b/sys/arch/x86/x86/mpacpi.c Wed Nov 04 14:39:17 2009 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index