[PATCH] sparc: Fix CPU counter support

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Feb 24 15:16:26 UTC 2014


On 2014-02-24 15:20, Daniel Hellstrom wrote:
> Sebastian, I think it's a good solution to rely on the GPTIMER[0].timer0 as a
> fallback.
>
> Looks good to me, and should work on the TSIM/GRSIM and LEON3 hardware.
>
> Assuming that the frequency has been initialized to 1MHz for secondary GPTIMER
> may be wrong when invoked from a boot loader, however this can be fixed later
> if determined a problem.

Thanks for the quick review.  I checked in a slightly different version that 
uses now only the first GPTIMER to determine the frequency:

http://git.rtems.org/rtems/commit/?id=a4bc90af4ee55e72b18de4b64da6338634490760

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list