1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

Kernel: Disable __thread and TLS on x86_64 for now

They're not yet properly supported.
This commit is contained in:
Gunnar Beutner 2021-06-29 17:56:04 +02:00 committed by Andreas Kling
parent c0bd2c0691
commit fe2716df21
5 changed files with 28 additions and 6 deletions

View file

@ -33,8 +33,14 @@ static constexpr size_t required_stack_alignment = 4 * MiB;
static constexpr size_t highest_reasonable_guard_size = 32 * PAGE_SIZE;
static constexpr size_t highest_reasonable_stack_size = 8 * MiB; // That's the default in Ubuntu?
__thread void* s_stack_location;
__thread size_t s_stack_size;
#ifndef X86_64_NO_TLS
__thread
#endif
void* s_stack_location;
#ifndef X86_64_NO_TLS
__thread
#endif
size_t s_stack_size;
#define __RETURN_PTHREAD_ERROR(rc) \
return ((rc) < 0 ? -(rc) : 0)