summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/bootcard.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:50:53 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:50:53 +0000
commit4e9893b19abbf3bd4633b3b986c011f66bcc1591 (patch)
tree4532deca8d4bc499d4c961b8a2fe5649a669fe95 /c/src/lib/libbsp/shared/bootcard.c
parent2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-4e9893b19abbf3bd4633b3b986c011f66bcc1591.tar.bz2
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* bootcard.c, bsplibc.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Diffstat (limited to 'c/src/lib/libbsp/shared/bootcard.c')
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c33
1 files changed, 8 insertions, 25 deletions
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index 23086106dd..b36e026f1d 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -36,16 +36,6 @@
extern void bsp_start( void );
extern void bsp_cleanup( void );
-extern rtems_configuration_table Configuration;
-extern rtems_configuration_table BSP_Configuration;
-rtems_api_configuration_table BSP_RTEMS_Configuration;
-
-#ifdef RTEMS_POSIX_API
-posix_api_configuration_table BSP_POSIX_Configuration;
-#endif
-
-rtems_interrupt_level bsp_isr_level;
-
/*
* Since there is a forward reference
*/
@@ -58,6 +48,13 @@ int boot_card(int argc, char **argv, char **envp)
static char *envp_pointer = NULL;
char **argv_p = &argv_pointer;
char **envp_p = &envp_pointer;
+ rtems_interrupt_level bsp_isr_level;
+
+ /*
+ * Make sure interrupts are disabled.
+ */
+
+ rtems_interrupt_disable( bsp_isr_level );
/*
* Set things up so c_rtems_main() is called with real pointers for
@@ -73,20 +70,6 @@ int boot_card(int argc, char **argv, char **envp)
envp_p = envp;
/*
- * Copy the configuration table so we and the BSP wants to change it.
- */
-
- BSP_Configuration = Configuration;
-
- BSP_RTEMS_Configuration = *Configuration.RTEMS_api_configuration;
- BSP_Configuration.RTEMS_api_configuration = &BSP_RTEMS_Configuration;
-
-#ifdef RTEMS_POSIX_API
- BSP_POSIX_Configuration = *Configuration.POSIX_api_configuration;
- BSP_Configuration.POSIX_api_configuration = &BSP_POSIX_Configuration;
-#endif
-
- /*
* Invoke Board Support Package initialization routine written in C.
*/
@@ -96,7 +79,7 @@ int boot_card(int argc, char **argv, char **envp)
* Initialize RTEMS but do NOT start multitasking.
*/
- bsp_isr_level = rtems_initialize_executive_early( &BSP_Configuration );
+ rtems_initialize_executive_early( &Configuration );
/*
* Call c_rtems_main() and eventually let the first task or the real