From fa920f122d77578b0e2492df87a7c7d1552ed8a8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 26 Nov 2007 23:02:17 +0000 Subject: 2007-11-26 Joel Sherrill * clock/ckinit.c, startup/bspstart.c: Eliminate the clicks_per_microsecond field in the SuperH CPU Table and define another mechanism for drivers to obtain this information. --- c/src/lib/libbsp/sh/simsh4/startup/bspstart.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'c/src/lib/libbsp/sh/simsh4/startup') diff --git a/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c b/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c index 5eaa59989a..c9d09020b2 100644 --- a/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c +++ b/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c @@ -31,6 +31,8 @@ #include +extern uint32_t bsp_clicks_per_second; + /* * The original table from the application and our copy of it with * some changes. @@ -136,5 +138,5 @@ void bsp_start(void) 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; } -- cgit v1.2.3