diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-26 23:02:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-11-26 23:02:15 +0000 |
commit | 26d47f8e73a8c046c10fc7991113f4a84a62e3c3 (patch) | |
tree | fbea58489ca05175c9b5e089c74dc46fa103afe3 /c/src/lib/libbsp/sh/shsim | |
parent | 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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/shsim/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/shsim/startup/bspstart.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sh/shsim/ChangeLog b/c/src/lib/libbsp/sh/shsim/ChangeLog index 1777936875..a8c8e21620 100644 --- a/c/src/lib/libbsp/sh/shsim/ChangeLog +++ b/c/src/lib/libbsp/sh/shsim/ChangeLog @@ -1,3 +1,9 @@ +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. + 2007-07-24 Joel Sherrill <joel.sherrill@OARcorp.com> * Makefile.am, preinstall.am, startup/linkcmds: Save the old linker diff --git a/c/src/lib/libbsp/sh/shsim/startup/bspstart.c b/c/src/lib/libbsp/sh/shsim/startup/bspstart.c index 8c7b2f5ebf..930c062956 100644 --- a/c/src/lib/libbsp/sh/shsim/startup/bspstart.c +++ b/c/src/lib/libbsp/sh/shsim/startup/bspstart.c @@ -27,6 +27,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. @@ -123,5 +125,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; } |