diff options
author | Martin Aberg <maberg@gaisler.com> | 2017-04-10 19:07:04 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2017-05-02 12:34:49 +0200 |
commit | 256e083ffb4afda49fb1200913f41b8a8a7151b3 (patch) | |
tree | 0fa73daa6477c3d76229862901a7a52e643c88d9 /c | |
parent | leon, l4stat: Initial driver commit (diff) | |
download | rtems-256e083ffb4afda49fb1200913f41b8a8a7151b3.tar.bz2 |
leon, gptimer: fixed probing separate interrupts
Probing of separate interrupts was done by storing the GPTIMER_CFG_SI bit. But
it was never actually stored since it is bit 8 and the datatype is 8-bit. Now
store the AND result as boolean value instead.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/timer/gptimer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c b/c/src/lib/libbsp/sparc/shared/timer/gptimer.c index e701211ee5..229e90666d 100644 --- a/c/src/lib/libbsp/sparc/shared/timer/gptimer.c +++ b/c/src/lib/libbsp/sparc/shared/timer/gptimer.c @@ -293,7 +293,7 @@ int gptimer_init1(struct drvmgr_dev *dev) * B. Each Timer have an individual IRQ. The number is: * BASE_IRQ + timer_index */ - priv->separate_interrupt = regs->cfg & GPTIMER_CFG_SI; + priv->separate_interrupt = (regs->cfg & GPTIMER_CFG_SI) != 0; return DRVMGR_OK; } |