From a2cc7b7fb4e767273d93d02b2a97373c22e5979b Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 30 Jul 1999 17:18:39 +0000 Subject: Corrected typo and added correct conditional compilation on RTEMS_POSIX_API. --- c/src/lib/libbsp/shared/bootcard.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3