summaryrefslogtreecommitdiffstats
path: root/schedsim/shell/shared/smp_stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'schedsim/shell/shared/smp_stub.c')
-rw-r--r--schedsim/shell/shared/smp_stub.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/schedsim/shell/shared/smp_stub.c b/schedsim/shell/shared/smp_stub.c
index cd73f4e..263f49e 100644
--- a/schedsim/shell/shared/smp_stub.c
+++ b/schedsim/shell/shared/smp_stub.c
@@ -16,8 +16,13 @@
#include <rtems/bspIo.h>
#include <stdlib.h>
+/*
+ * Actually owned by the _Thread_Dispatch() wrapper.
+ * This way the variable is available all the time.
+ */
+extern uint32_t Schedsim_Current_cpu;
+
#if RTEMS_SMP
- uint32_t Schedsim_Current_cpu;
extern uint32_t Schedsim_Maximum_CPUs_From_Command_Line;
#endif