serenity/Kernel/Arch/ArchSpecificThreadData.h
Sönke Holz 216089c7a1 Kernel: Add a Thread member for arch-specific data
This will be used to store the fs_base value on x86-64, which is needed
for thread-local storage.
2024-04-19 16:46:47 -06:00

20 lines
430 B
C

/*
* Copyright (c) 2024, Sönke Holz <sholz8530@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Platform.h>
#if ARCH(X86_64)
# include <Kernel/Arch/x86_64/ArchSpecificThreadData.h>
#elif ARCH(AARCH64)
# include <Kernel/Arch/aarch64/ArchSpecificThreadData.h>
#elif ARCH(RISCV64)
# include <Kernel/Arch/riscv64/ArchSpecificThreadData.h>
#else
# error Unknown architecture
#endif