Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/acpi Future-proof ID_AA64PFR0_EL1.GIC test -- a...



details:   https://anonhg.NetBSD.org/src/rev/4960a1e64ddc
branches:  trunk
changeset: 948270:4960a1e64ddc
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Dec 23 11:05:08 2020 +0000

description:
Future-proof ID_AA64PFR0_EL1.GIC test -- any value other than 0 means that
the GIC CPU interface is supported.

diffstat:

 sys/arch/arm/acpi/gicv3_acpi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c5a8b3b3f00b -r 4960a1e64ddc sys/arch/arm/acpi/gicv3_acpi.c
--- a/sys/arch/arm/acpi/gicv3_acpi.c    Wed Dec 23 10:43:00 2020 +0000
+++ b/sys/arch/arm/acpi/gicv3_acpi.c    Wed Dec 23 11:05:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gicv3_acpi.c,v 1.7 2020/02/13 00:02:21 jmcneill Exp $ */
+/* $NetBSD: gicv3_acpi.c,v 1.8 2020/12/23 11:05:08 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 #define        _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gicv3_acpi.c,v 1.7 2020/02/13 00:02:21 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gicv3_acpi.c,v 1.8 2020/12/23 11:05:08 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -91,7 +91,7 @@
 
        switch (gicd->Version) {
        case ACPI_MADT_GIC_VERSION_NONE:
-               return __SHIFTOUT(reg_id_aa64pfr0_el1_read(), ID_AA64PFR0_EL1_GIC) == 1;
+               return __SHIFTOUT(reg_id_aa64pfr0_el1_read(), ID_AA64PFR0_EL1_GIC) != 0;
        case ACPI_MADT_GIC_VERSION_V3:
        case ACPI_MADT_GIC_VERSION_V4:
                return 1;



Home | Main Index | Thread Index | Old Index