summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:46:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:46:10 +0000
commit200748bfa01558cc072562d5f9d8e1bbf33fe8bc (patch)
tree9c92c6bb0ea6c0b01d1f78632053974a9a5d0406 /c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc
parent2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-200748bfa01558cc072562d5f9d8e1bbf33fe8bc.tar.bz2
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* clock/clock.c, include/bsp.h, startup/bspstart.c, startup/rtems-ctor.cc: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc b/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc
index 8878c51e41..7d04ceafc6 100644
--- a/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc
+++ b/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc
@@ -49,15 +49,6 @@
#include <stdio.h>
#include <stdlib.h>
-/*
- * RTEMS program name
- * Probably not used by anyone, but it is nice to have it.
- * Actually the UNIX version of CPU_INVOKE_DEBUGGER will probably
- * need to use it
- */
-
-char *rtems_progname;
-
class RTEMS {
public:
RTEMS();
@@ -89,6 +80,14 @@ extern "C" {
rtems_argc = argc;
rtems_argv = argv;
+ rtems_interrupt_level bsp_isr_level;
+
+ /*
+ * Make sure interrupts are disabled.
+ */
+
+ rtems_interrupt_disable( bsp_isr_level );
+
if ((argc > 0) && argv && argv[0])
rtems_progname = argv[0];
else
@@ -102,6 +101,8 @@ extern "C" {
invoke_non_gnu_constructors();
#endif
+ rtems_initialize_executive_early( &Configuration );
+
/*
* Start multitasking
*/