diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:50:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:50:25 +0000 |
commit | 4130d8e2e2312b72400403570b3d5f88f6f9d6db (patch) | |
tree | 8ab81640f610440e061706416fe62c5f1954b87c /c/src/lib/libbsp/sh | |
parent | 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-4130d8e2e2312b72400403570b3d5f88f6f9d6db.tar.bz2 |
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c: Eliminate copies of the
Configuration Table. Use the RTEMS provided accessor macros to obtain
configuration fields.
Diffstat (limited to 'c/src/lib/libbsp/sh')
-rw-r--r-- | c/src/lib/libbsp/sh/gensh1/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/gensh1/include/bsp.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/gensh1/startup/bspstart.c | 13 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/gensh2/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/gensh2/include/bsp.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/gensh2/startup/bspstart.c | 12 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/gensh4/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/gensh4/include/bsp.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/gensh4/startup/bspstart.c | 12 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/shsim/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/shsim/include/bsp.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/sh/shsim/startup/bspstart.c | 13 |
12 files changed, 32 insertions, 50 deletions
diff --git a/c/src/lib/libbsp/sh/gensh1/ChangeLog b/c/src/lib/libbsp/sh/gensh1/ChangeLog index faf5dd1a97..10c563b61e 100644 --- a/c/src/lib/libbsp/sh/gensh1/ChangeLog +++ b/c/src/lib/libbsp/sh/gensh1/ChangeLog @@ -1,3 +1,9 @@ +2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> + + * include/bsp.h, startup/bspstart.c: Eliminate copies of the + Configuration Table. Use the RTEMS provided accessor macros to obtain + configuration fields. + 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com> * include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field diff --git a/c/src/lib/libbsp/sh/gensh1/include/bsp.h b/c/src/lib/libbsp/sh/gensh1/include/bsp.h index 02e2e544a4..5c1659459e 100644 --- a/c/src/lib/libbsp/sh/gensh1/include/bsp.h +++ b/c/src/lib/libbsp/sh/gensh1/include/bsp.h @@ -70,8 +70,6 @@ extern void *CPU_Interrupt_stack_high ; /* miscellaneous stuff assumed to exist */ -extern rtems_configuration_table BSP_Configuration; - extern void bsp_cleanup( void ); /* diff --git a/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c index 31989ccde8..0138d8b7d9 100644 --- a/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c +++ b/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c @@ -33,15 +33,6 @@ uint32_t bsp_clicks_per_second; /* - * The original table from the application and our copy of it with - * some changes. - */ - -extern rtems_configuration_table Configuration; -rtems_configuration_table BSP_Configuration; -char *rtems_progname; - -/* * Use the shared implementations of the following routines */ @@ -100,8 +91,8 @@ void bsp_start(void) * not malloc'ed. It is just "pulled from the air". */ - BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ; - BSP_Configuration.work_space_size = + Configuration.work_space_start = (void *) &WorkSpaceStart ; + rtems_configuration_get_work_space_size() = (uint32_t) &WorkSpaceEnd - (uint32_t) &WorkSpaceStart ; diff --git a/c/src/lib/libbsp/sh/gensh2/ChangeLog b/c/src/lib/libbsp/sh/gensh2/ChangeLog index de9260ab2e..3fefd91c32 100644 --- a/c/src/lib/libbsp/sh/gensh2/ChangeLog +++ b/c/src/lib/libbsp/sh/gensh2/ChangeLog @@ -1,3 +1,9 @@ +2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> + + * include/bsp.h, startup/bspstart.c: Eliminate copies of the + Configuration Table. Use the RTEMS provided accessor macros to obtain + configuration fields. + 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com> * include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field diff --git a/c/src/lib/libbsp/sh/gensh2/include/bsp.h b/c/src/lib/libbsp/sh/gensh2/include/bsp.h index 72d5504d45..b0cb1cb9f3 100644 --- a/c/src/lib/libbsp/sh/gensh2/include/bsp.h +++ b/c/src/lib/libbsp/sh/gensh2/include/bsp.h @@ -86,8 +86,6 @@ extern void *CPU_Interrupt_stack_high ; /* miscellaneous stuff assumed to exist */ -extern rtems_configuration_table BSP_Configuration; - extern void bsp_cleanup( void ); /* diff --git a/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c index dc64f5a43e..389c390888 100644 --- a/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c +++ b/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c @@ -32,15 +32,7 @@ uint32_t bsp_clicks_per_second; -/* - * The original table from the application and our copy of it with - * some changes. - */ - extern void bsp_hw_init(void); -extern rtems_configuration_table Configuration; -rtems_configuration_table BSP_Configuration; -char *rtems_progname; /* * Use the shared implementations of the following routines @@ -106,8 +98,8 @@ void bsp_start(void) * not malloc'ed. It is just "pulled from the air". */ - BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ; - BSP_Configuration.work_space_size = + Configuration.work_space_start = (void *) &WorkSpaceStart ; + rtems_configuration_get_work_space_size() = &WorkSpaceEnd - &WorkSpaceStart ; /* diff --git a/c/src/lib/libbsp/sh/gensh4/ChangeLog b/c/src/lib/libbsp/sh/gensh4/ChangeLog index 681b546bf5..e1ffda923e 100644 --- a/c/src/lib/libbsp/sh/gensh4/ChangeLog +++ b/c/src/lib/libbsp/sh/gensh4/ChangeLog @@ -1,3 +1,9 @@ +2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> + + * include/bsp.h, startup/bspstart.c: Eliminate copies of the + Configuration Table. Use the RTEMS provided accessor macros to obtain + configuration fields. + 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com> * include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field diff --git a/c/src/lib/libbsp/sh/gensh4/include/bsp.h b/c/src/lib/libbsp/sh/gensh4/include/bsp.h index b8f0202052..c6c108602a 100644 --- a/c/src/lib/libbsp/sh/gensh4/include/bsp.h +++ b/c/src/lib/libbsp/sh/gensh4/include/bsp.h @@ -82,8 +82,6 @@ extern uint32_t boot_mode; /* miscellaneous stuff assumed to exist */ -extern rtems_configuration_table BSP_Configuration; - extern void bsp_cleanup( void ); /* diff --git a/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c index c600c0338c..d1ea917aef 100644 --- a/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c +++ b/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c @@ -33,15 +33,7 @@ uint32_t bsp_clicks_per_second; -/* - * The original table from the application and our copy of it with - * some changes. - */ - extern void bsp_hw_init(void); -extern rtems_configuration_table Configuration; -rtems_configuration_table BSP_Configuration; -char *rtems_progname; /* * Use the shared implementations of the following routines @@ -107,8 +99,8 @@ void bsp_start(void) * not malloc'ed. It is just "pulled from the air". */ - BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ; - BSP_Configuration.work_space_size = + Configuration.work_space_start = (void *) &WorkSpaceStart ; + rtems_configuration_get_work_space_size() = (uint32_t) &WorkSpaceEnd - (uint32_t) &WorkSpaceStart ; diff --git a/c/src/lib/libbsp/sh/shsim/ChangeLog b/c/src/lib/libbsp/sh/shsim/ChangeLog index 66de4cc265..56773e0b8a 100644 --- a/c/src/lib/libbsp/sh/shsim/ChangeLog +++ b/c/src/lib/libbsp/sh/shsim/ChangeLog @@ -1,3 +1,9 @@ +2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> + + * include/bsp.h, startup/bspstart.c: Eliminate copies of the + Configuration Table. Use the RTEMS provided accessor macros to obtain + configuration fields. + 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com> * include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field diff --git a/c/src/lib/libbsp/sh/shsim/include/bsp.h b/c/src/lib/libbsp/sh/shsim/include/bsp.h index 8db58b7b77..5f95d4f465 100644 --- a/c/src/lib/libbsp/sh/shsim/include/bsp.h +++ b/c/src/lib/libbsp/sh/shsim/include/bsp.h @@ -66,8 +66,6 @@ extern void *CPU_Interrupt_stack_high ; /* miscellaneous stuff assumed to exist */ -extern rtems_configuration_table BSP_Configuration; - extern void bsp_cleanup( void ); /* diff --git a/c/src/lib/libbsp/sh/shsim/startup/bspstart.c b/c/src/lib/libbsp/sh/shsim/startup/bspstart.c index 89d9d6292b..4905981337 100644 --- a/c/src/lib/libbsp/sh/shsim/startup/bspstart.c +++ b/c/src/lib/libbsp/sh/shsim/startup/bspstart.c @@ -30,15 +30,6 @@ uint32_t bsp_clicks_per_second; /* - * The original table from the application and our copy of it with - * some changes. - */ - -extern rtems_configuration_table Configuration; -rtems_configuration_table BSP_Configuration; -char *rtems_progname; - -/* * Use the shared implementations of the following routines */ @@ -97,8 +88,8 @@ void bsp_start( void ) * not malloc'ed. It is just "pulled from the air". */ - BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ; - BSP_Configuration.work_space_size = + Configuration.work_space_start = (void *) &WorkSpaceStart ; + rtems_configuration_get_work_space_size() = (uint32_t) &WorkSpaceEnd - (uint32_t) &WorkSpaceStart ; |