Changeset acf7047e in rtems


Ignore:
Timestamp:
Sep 10, 2013, 11:46:29 AM (6 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
3c236cc
Parents:
51347053
git-author:
Daniel Hellstrom <daniel@…> (09/10/13 11:46:29)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:20)
Message:

GPTIMER: timer probing must not be on timer0

Timers are identical within one GPTIMER core. Probing only the
first timer is sufficient, however the first timer was hardcoded
to timer0 which is not correct in a multi-OS system like RTEMS
AMP. This patch makes sure that probing is done on the first
timer that can be used by this RTEMS instance. Without this
patch RTEMS AMP is broken on systems (like the GR712RC) where
there is only one GPTIMER core proviing multiple timers. Designs
(like the NGMP/FP) where there are multiple GPTIMER cores are not
affected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/timer/gptimer.c

    r51347053 racf7047e  
    273273         * whereas older versions it is cleared with a zero.
    274274         */
    275         priv->regs->timer[0].ctrl = GPTIMER_CTRL_IP;
    276         if ((priv->regs->timer[0].ctrl & GPTIMER_CTRL_IP) != 0)
     275        priv->regs->timer[timer_start].ctrl = GPTIMER_CTRL_IP;
     276        if ((priv->regs->timer[timer_start].ctrl & GPTIMER_CTRL_IP) != 0)
    277277                irq_ack_mask = ~GPTIMER_CTRL_IP;
    278278        else
Note: See TracChangeset for help on using the changeset viewer.