summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-07-30 17:18:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-07-30 17:18:39 +0000
commita2cc7b7fb4e767273d93d02b2a97373c22e5979b (patch)
treeddfa0281ec1e985b559c9fae28759cf0b297e12c
parentPatch from Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca> (diff)
downloadrtems-a2cc7b7fb4e767273d93d02b2a97373c22e5979b.tar.bz2
Corrected typo and added correct conditional compilation on RTEMS_POSIX_API.
-rw-r--r--c/src/lib/libbsp/shared/bootcard.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c
index a1935997e0..aa639d69e9 100644
--- a/c/src/lib/libbsp/shared/bootcard.c
+++ b/c/src/lib/libbsp/shared/bootcard.c
@@ -26,6 +26,12 @@ extern rtems_configuration_table Configuration;
extern rtems_configuration_table BSP_Configuration;
extern rtems_cpu_table Cpu_table;
+rtems_api_configuration_table BSP_RTEMS_Configuration;
+
+#ifdef RTEMS_POSIX_API
+posix_api_configuration_table BSP_POSIX_Configuration;
+#endif
+
/* Initialize C++ global Ctor/Dtor and initializes exception handling. */
#if defined(USE_INIT_FINI)
extern void _fini( void );
@@ -65,7 +71,15 @@ int boot_card(int argc, char **argv)
* Copy the configuration table so we and the BSP wants to change it.
*/
- BSP_Configuration = Configuration;
+ 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
/*
* The atexit hook will be before the static destructor list's entry