summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-26 23:02:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-11-26 23:02:15 +0000
commit26d47f8e73a8c046c10fc7991113f4a84a62e3c3 (patch)
treefbea58489ca05175c9b5e089c74dc46fa103afe3 /c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
parent2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-26d47f8e73a8c046c10fc7991113f4a84a62e3c3.tar.bz2
2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspstart.c: Eliminate the clicks_per_microsecond field in the SuperH CPU Table and define another mechanism for drivers to obtain this information.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sh/gensh1/startup/bspstart.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
index 4f9ca51fc2..4e9eb45d80 100644
--- a/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
@@ -30,6 +30,8 @@
#include <rtems/libio.h>
#include <rtems/libcsupport.h>
+uint32_t bsp_clicks_per_second;
+
/*
* The original table from the application and our copy of it with
* some changes.
@@ -126,5 +128,5 @@ void bsp_start(void)
#if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE )
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
#endif
- Cpu_table.clicks_per_second = CPU_CLOCK_RATE_HZ ;
+ bsp_clicks_per_second = CPU_CLOCK_RATE_HZ;
}