summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/libmisc/shell/shell.c2
-rw-r--r--cpukit/libmisc/shell/shell.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c
index 8666299b06..0f31f2a5c2 100644
--- a/cpukit/libmisc/shell/shell.c
+++ b/cpukit/libmisc/shell/shell.c
@@ -40,7 +40,7 @@
#include <pthread.h>
#include <assert.h>
-static rtems_shell_env_t rtems_global_shell_env = {
+const rtems_shell_env_t rtems_global_shell_env = {
.magic = rtems_build_name('S', 'E', 'N', 'V'),
.devname = CONSOLE_DEVICE_NAME,
.taskname = "SHGL",
diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h
index af09ac3a38..76b34c7a5e 100644
--- a/cpukit/libmisc/shell/shell.h
+++ b/cpukit/libmisc/shell/shell.h
@@ -205,6 +205,8 @@ bool rtems_shell_main_loop(
rtems_shell_env_t *rtems_shell_env
);
+extern const rtems_shell_env_t rtems_global_shell_env;
+
rtems_shell_env_t *rtems_shell_get_current_env(void);
#define rtems_current_shell_env rtems_shell_get_current_env()