Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/marvell Fix always check high. macro KIRKWOOD_...
details: https://anonhg.NetBSD.org/src/rev/14eaf6bcb066
branches: trunk
changeset: 780254:14eaf6bcb066
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Wed Jul 18 10:04:20 2012 +0000
description:
Fix always check high. macro KIRKWOOD_IRQ_* means bit number. HIGH is bit0.
diffstat:
sys/arch/arm/marvell/kirkwood.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6c8e33f959b6 -r 14eaf6bcb066 sys/arch/arm/marvell/kirkwood.c
--- a/sys/arch/arm/marvell/kirkwood.c Wed Jul 18 09:56:49 2012 +0000
+++ b/sys/arch/arm/marvell/kirkwood.c Wed Jul 18 10:04:20 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kirkwood.c,v 1.4 2011/05/24 17:45:49 matt Exp $ */
+/* $NetBSD: kirkwood.c,v 1.5 2012/07/18 10:04:20 kiyohara Exp $ */
/*
* Copyright (c) 2010 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kirkwood.c,v 1.4 2011/05/24 17:45:49 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kirkwood.c,v 1.5 2012/07/18 10:04:20 kiyohara Exp $");
#define _INTR_PRIVATE
@@ -188,7 +188,7 @@
if (pendinglow != 0)
ipl |= pic_mark_pending_sources(&kirkwood_pic, 0, pendinglow);
- if ((causelow & KIRKWOOD_IRQ_HIGH) == KIRKWOOD_IRQ_HIGH) {
+ if ((causelow & (1 << KIRKWOOD_IRQ_HIGH)) == (1 << KIRKWOOD_IRQ_HIGH)) {
uint32_t causehigh = read_mlmbreg(KIRKWOOD_MLMB_MICHR);
uint32_t pendinghigh = read_mlmbreg(KIRKWOOD_MLMB_MIRQIMHR);
pendinghigh &= causehigh;
Home |
Main Index |
Thread Index |
Old Index