[rtems commit] LEON3: IRQ index mask was bad, but always shifted out anyway
gedare at rtems.org
gedare at rtems.org
Thu Mar 29 19:07:23 UTC 2012
Module: rtems
Branch: master
Commit: 226771c5bc26faf538ffbceae7ee0bb50199bcbe
Changeset: http://git.rtems.org/rtems/commit/?id=226771c5bc26faf538ffbceae7ee0bb50199bcbe
Author: Daniel Hellstrom <daniel at gaisler.com>
Date: Thu Mar 29 13:52:14 2012 +0200
LEON3: IRQ index mask was bad, but always shifted out anyway
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(); \
} \
More information about the vc
mailing list