[PATCH 23] LEON3: IRQ index mask was bad, but always shifted out anyway

Joel Sherrill joel.sherrill at OARcorp.com
Thu Mar 29 12:44:55 UTC 2012


Ouch. 

Ok to apply

Daniel Hellstrom <daniel at gaisler.com> wrote:

>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
>
>_______________________________________________
>rtems-devel mailing list
>rtems-devel at rtems.org
>http://www.rtems.org/mailman/listinfo/rtems-devel




More information about the devel mailing list