[PATCH 23] LEON3: IRQ index mask was bad, but always shifted out anyway
Daniel Hellstrom
daniel at gaisler.com
Thu Mar 29 11:52:14 UTC 2012
Signed-off-by: Daniel Hellstrom <daniel at gaisler.com>
---
c/src/lib/libbsp/sparc/leon3/clock/ckinit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
index 932b8fd..0d0d231 100644
--- a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
+++ b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
@@ -67,7 +67,7 @@ static int clkirq;
if ( cnt > 0 ){ \
/* Found APB GPTIMER Timer */ \
LEON3_Timer_Regs = (volatile LEON3_Timer_Regs_Map *) dev.start; \
- clkirq = (LEON3_Timer_Regs->status & 0xfc) >> 3; \
+ clkirq = (LEON3_Timer_Regs->status & 0xf8) >> 3; \
\
Adjust_clkirq_for_node(); \
} \
--
1.7.0.4
More information about the devel
mailing list