From 03e4d1e931cdd6582ccc92b3a4dc883b446b5647 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 29 Jun 2022 14:37:47 +0200 Subject: score: Add _CPU_Use_thread_local_storage() At some point during system initialization, the idle threads are created. Afterwards, the boot processor basically executes within the context of an idle thread with thread dispatching disabled. On some architectures, the thread-local storage area of the associated thread must be set in dedicated processor registers. Add the new CPU port function to do this: void _CPU_Use_thread_local_storage( const Context_Control *context ) Close #4672. --- cpukit/score/cpu/sparc64/include/rtems/score/cpuimpl.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/score/cpu/sparc64') diff --git a/cpukit/score/cpu/sparc64/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/sparc64/include/rtems/score/cpuimpl.h index c026687d01..23aed1a8d6 100644 --- a/cpukit/score/cpu/sparc64/include/rtems/score/cpuimpl.h +++ b/cpukit/score/cpu/sparc64/include/rtems/score/cpuimpl.h @@ -78,6 +78,13 @@ RTEMS_INLINE_ROUTINE void _CPU_Instruction_no_operation( void ) __asm__ volatile ( "nop" ); } +RTEMS_INLINE_ROUTINE void _CPU_Use_thread_local_storage( + const Context_Control *context +) +{ + (void) context; +} + #ifdef __cplusplus } #endif -- cgit v1.2.3