this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make sure tsd uses %fs on i386

Fixes https://github.com/darlinghq/darling/issues/493
See also https://wiki.darlinghq.org/documentation:thread_local_storage

+7
+7
src/kernel/libsyscall/os/tsd.h
··· 54 54 #if defined(__has_attribute) 55 55 #if __has_attribute(address_space) 56 56 #define OS_GS_RELATIVE __attribute__((address_space(256))) 57 + 58 + // On Darling, i386 uses %fs instead of %gs for TLS. 59 + #if defined(DARLING) && defined(__i386__) && !defined(__x86_64__) 60 + #undef OS_GS_RELATIVE 61 + #define OS_GS_RELATIVE __attribute__((address_space(257))) 62 + #endif 63 + 57 64 #endif 58 65 #endif 59 66