summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-24 12:45:00 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-24 16:12:02 +0100
commita4bc90af4ee55e72b18de4b64da6338634490760 (patch)
tree64cd9a60f941054d469ce5061d9d77847de2e308 /c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
parentscore: Fix thread TLS area initialization (diff)
downloadrtems-a4bc90af4ee55e72b18de4b64da6338634490760.tar.bz2
sparc: Fix CPU counter support
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.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/clock/ckinit.c')
-rw-r--r--c/src/lib/libbsp/sparc/leon3/clock/ckinit.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
index e0556ba31a..d2aae23613 100644
--- a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
+++ b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
@@ -30,13 +30,6 @@
* The Real Time Clock Counter Timer uses this trap type.
*/
-#if defined(RTEMS_MULTIPROCESSING)
- #define LEON3_CLOCK_INDEX \
- (rtems_configuration_get_user_multiprocessing_table() ? LEON3_Cpu_Index : 0)
-#else
- #define LEON3_CLOCK_INDEX 0
-#endif
-
volatile struct gptimer_regs *LEON3_Timer_Regs = 0;
static int clkirq;