summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon3/startup/cpucounter.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move startup files to bspsSebastian Huber2018-04-201-80/+0
| | | | | | | | Adjust build support files to new directory layout. This patch is a part of the BSP source reorganization. Update #3285.
* bsp/leon3: Enable timer used for CPU counterSebastian Huber2017-12-061-0/+3
| | | | | In case no clock driver is configured, the corresponding timer may be stopped.
* sparc: Optimize CPU counter supportSebastian Huber2016-06-221-5/+2
|
* sparc: Rework CPU counter supportSebastian Huber2016-06-211-49/+46
| | | | | Rework CPU counter support to enable use of the GR740 up-counter via %asr22 and %asr23.
* leon3,ngmp: cpucounter initialization use proper namesDaniel Hellstrom2015-04-171-2/+3
| | | | | | To be merged with "leon3,ngmp: simplify cpucounter initialization" .. as an affect of previous patch, the next must be updated too.
* leon3,ngmp: simplify cpucounter initializationDaniel Hellstrom2015-04-171-49/+6
| | | | | | | | | | | | | Remove support for using the second timer for time stamping. Instead the user can configure the system clock timer to a higher base clock frequency (lower the prescaler). This change does not affect the GR712RC or LEON4-N2X. The GR712RC does not have two GPTIMERs and the N2X uses the Interrupt Controller for time stamping. Bow that the AMBA initialization code exports the AMBA device, the frequency can be obtained without an additional AMBA PnP scanning.
* bsp/leon3: Delete unused functionSebastian Huber2014-05-121-5/+0
|
* bsps/sparc: Move flags to grlib headerChristian Mauderer2014-05-121-2/+2
| | | | This enables re-use for other BSPs
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* bsp/leon3: Use interrupt timestamping counterSebastian Huber2014-03-101-28/+66
| | | | | Use the interrupt controller timestamping counter for the CPU counter if available since it runs with a high frequency.
* bsp/leon3: Use ambapp_freq_get() for CPU counterSebastian Huber2014-02-281-38/+20
|
* sparc: Fix CPU counter supportSebastian Huber2014-02-241-27/+73
| | | | | | | | The SPARC processors supported by RTEMS have no built-in CPU counter support. We have to use some hardware counter module for this purpose. The BSP must provide a 32-bit register which contains the current CPU counter value and a function for the difference calculation. It can use for example the GPTIMER instance used for the clock driver.
* score: Add RTEMS_FATAL_SOURCE_BSPSebastian Huber2014-02-191-1/+2
| | | | | | Merge RTEMS_FATAL_SOURCE_BSP_GENERIC and RTEMS_FATAL_SOURCE_BSP_SPECIFIC into new fatal source RTEMS_FATAL_SOURCE_BSP. This makes it easier to figure out the code position given a fatal source and code.
* score: Add CPU counter supportSebastian Huber2014-02-141-0/+63
Add a CPU counter interface to allow access to a free-running counter. It is useful to measure short time intervals. This can be used for example to enable profiling of critical low-level functions. Add two busy wait functions rtems_counter_delay_ticks() and rtems_counter_delay_nanoseconds() implemented via the CPU counter.