diff options
Diffstat (limited to 'schedsim/shell/shared/smp_stub.c')
-rw-r--r-- | schedsim/shell/shared/smp_stub.c | 7 |
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 |