Changeset 01ba701
- Timestamp:
- Aug 30, 2022, 5:35:26 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- a0dbf20
- Parents:
- fbb930e
- Location:
- libcfa/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/defs.hfa
rfbb930e r01ba701 24 24 #define likely(x) __builtin_expect(!!(x), 1) 25 25 #define unlikely(x) __builtin_expect(!!(x), 0) 26 #define thread_local _Thread_local27 26 28 27 typedef void (*fptr_t)(); -
libcfa/src/concurrency/kernel/fwd.hfa
rfbb930e r01ba701 35 35 extern "C" { 36 36 extern "Cforall" { 37 extern __attribute__((aligned(64))) thread_local struct KernelThreadData {37 extern __attribute__((aligned(64))) _Thread_local struct KernelThreadData { 38 38 struct thread$ * volatile this_thread; 39 39 struct processor * volatile this_processor; -
libcfa/src/concurrency/kernel/private.hfa
rfbb930e r01ba701 88 88 #elif defined(CFA_HAVE_LINUX_RSEQ_H) 89 89 extern "Cforall" { 90 extern __attribute__((aligned(64))) thread_local volatile struct rseq __cfaabi_rseq;90 extern __attribute__((aligned(64))) _Thread_local volatile struct rseq __cfaabi_rseq; 91 91 } 92 92 #else -
libcfa/src/concurrency/kernel/startup.cfa
rfbb930e r01ba701 133 133 //----------------------------------------------------------------------------- 134 134 // Global state 135 thread_local struct KernelThreadData __cfaabi_tls __attribute__ ((tls_model ( "initial-exec" ))) @= {135 _Thread_local struct KernelThreadData __cfaabi_tls __attribute__ ((tls_model ( "initial-exec" ))) @= { 136 136 NULL, // cannot use 0p 137 137 NULL, … … 153 153 #elif defined(CFA_HAVE_LINUX_RSEQ_H) 154 154 extern "Cforall" { 155 __attribute__((aligned(64))) thread_local volatile struct rseq __cfaabi_rseq @= {155 __attribute__((aligned(64))) _Thread_local volatile struct rseq __cfaabi_rseq @= { 156 156 .cpu_id : RSEQ_CPU_ID_UNINITIALIZED, 157 157 }; -
libcfa/src/concurrency/preemption.cfa
rfbb930e r01ba701 666 666 // Kernel Signal Handlers 667 667 //============================================================================================= 668 __cfaabi_dbg_debug_do( static thread_local void * last_interrupt = 0; )668 __cfaabi_dbg_debug_do( static _Thread_local void * last_interrupt = 0; ) 669 669 670 670 // Context switch signal handler
Note: See TracChangeset
for help on using the changeset viewer.