user/lib/libc/src/threads/tls_static.c
/**
 * Updates the base pointer of the current thread's thread-local information structure.
 */
Updates the base pointer of the current thread's thread-local information structure.
Updates the base pointer of the current thread ' s thread - local information structure .
static void SetCurrentTlsBase(void *ptr) {
    int err;
#if defined(__amd64__)
    err = Amd64SetThreadLocalBase(SYS_ARCH_AMD64_TLS_FS, (const uintptr_t) ptr);
    assert(!err);
#else
#error Please tell me how to set a thread's TLS base.
#endif
}
static void SetCurrentTlsBase ( void * ptr ) { int err ; #if defined ( __amd64__ ) err = Amd64SetThreadLocalBase ( SYS_ARCH_AMD64_TLS_FS , ( const uintptr_t ) ptr ) ; assert ( ! err ) ; #else #error  Please tell me how to set a thread's TLS base. #endif }
Updates the base pointer of the current thread's thread-local information structure.
Updates the base pointer of the current thread ' s thread - local information structure .