Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/cortex If we see GICC_IAR_IRQ_SSPURIOUS we shou...
details: https://anonhg.NetBSD.org/src/rev/b9d39e74f6c3
branches: trunk
changeset: 354571:b9d39e74f6c3
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Jun 22 08:10:29 2017 +0000
description:
If we see GICC_IAR_IRQ_SSPURIOUS we should also stop looking for irqs
diffstat:
sys/arch/arm/cortex/gic.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 18eae1d43ad0 -r b9d39e74f6c3 sys/arch/arm/cortex/gic.c
--- a/sys/arch/arm/cortex/gic.c Thu Jun 22 08:04:32 2017 +0000
+++ b/sys/arch/arm/cortex/gic.c Thu Jun 22 08:10:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gic.c,v 1.27 2017/06/22 08:04:32 skrll Exp $ */
+/* $NetBSD: gic.c,v 1.28 2017/06/22 08:10:29 skrll Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -35,7 +35,7 @@
#define _INTR_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.27 2017/06/22 08:04:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gic.c,v 1.28 2017/06/22 08:10:29 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -293,11 +293,15 @@
uint32_t irq = __SHIFTOUT(iar, GICC_IAR_IRQ);
KERNHIST_LOG(armgichist, "iar %#x (irq %d)", iar, irq, 0, 0);
- if (irq == GICC_IAR_IRQ_SPURIOUS) {
+ if (irq == GICC_IAR_IRQ_SPURIOUS ||
+ irq == GICC_IAR_IRQ_SSPURIOUS) {
iar = gicc_read(sc, GICC_IAR);
irq = __SHIFTOUT(iar, GICC_IAR_IRQ);
if (irq == GICC_IAR_IRQ_SPURIOUS)
break;
+ if (irq == GICC_IAR_IRQ_SSPURIOUS) {
+ break;
+ }
}
//const uint32_t cpuid = __SHIFTOUT(iar, GICC_IAR_CPUID_MASK);
Home |
Main Index |
Thread Index |
Old Index