diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/score/src/thread.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/exec/score/src/thread.c b/c/src/exec/score/src/thread.c index 4e44ac6f75..292e042d57 100644 --- a/c/src/exec/score/src/thread.c +++ b/c/src/exec/score/src/thread.c @@ -271,6 +271,8 @@ void _Thread_Dispatch( void ) _Thread_Dispatch_disable_level = 1; _Context_Switch_necessary = FALSE; _Thread_Executing = heir; + executing->rtems_ada_self = rtems_ada_self; + rtems_ada_self = heir->rtems_ada_self; _ISR_Enable( level ); heir->ticks_executed++; @@ -438,6 +440,12 @@ boolean _Thread_Initialize( void *extensions_area; /* + * Initialize the Ada self pointer + */ + + the_thread->rtems_ada_self = NULL; + + /* * Allocate and Initialize the stack for this thread. */ |