diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2012-03-29 13:52:14 +0200 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2012-03-29 15:08:35 -0400 |
commit | 226771c5bc26faf538ffbceae7ee0bb50199bcbe (patch) | |
tree | 0567c0c5a15776a248974ce2c78d8e37c28a6053 /c/src/lib/libbsp | |
parent | LEON3: clock timer indexing should be consequent (diff) | |
download | rtems-226771c5bc26faf538ffbceae7ee0bb50199bcbe.tar.bz2 |
LEON3: IRQ index mask was bad, but always shifted out anyway
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r-- | 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 932b8fd87b..0d0d231739 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(); \ } \ |