mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
Toolchain+Userland: Enable TLS for x86_64
This is not technically a toolchain change, but it does require rebuilding the toolchain for x86_64 (and just that).
This commit is contained in:
parent
371c852fc0
commit
e1ff30a360
4 changed files with 5 additions and 27 deletions
|
@ -11,16 +11,8 @@
|
|||
#include <string.h>
|
||||
|
||||
// FIXME: use thread_local and a String once TLS works
|
||||
#ifndef X86_64_NO_TLS
|
||||
__thread
|
||||
#endif
|
||||
char* s_dlerror_text
|
||||
= NULL;
|
||||
#ifndef X86_64_NO_TLS
|
||||
__thread
|
||||
#endif
|
||||
bool s_dlerror_retrieved
|
||||
= false;
|
||||
__thread char* s_dlerror_text = NULL;
|
||||
__thread bool s_dlerror_retrieved = false;
|
||||
|
||||
static void store_error(const String& error)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue