mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-27 10:29:23 +00:00
All of our architectures sadly use a slightly different TLS layout. These headers try to abstract the differences in a nice way.
26 lines
459 B
C++
26 lines
459 B
C++
/*
|
|
* Copyright (c) 2024, Sönke Holz <sholz8530@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Platform.h>
|
|
#include <AK/Types.h>
|
|
|
|
namespace ELF {
|
|
|
|
void set_thread_pointer_register(FlatPtr);
|
|
|
|
}
|
|
|
|
#if ARCH(AARCH64)
|
|
# include <LibELF/Arch/aarch64/tls.h>
|
|
#elif ARCH(RISCV64)
|
|
# include <LibELF/Arch/riscv64/tls.h>
|
|
#elif ARCH(X86_64)
|
|
# include <LibELF/Arch/x86_64/tls.h>
|
|
#else
|
|
# error Unknown architecture
|
|
#endif
|