diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-23 21:54:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-24 09:27:13 +0200 |
commit | 38fca26f542bcc9fa68755323ac4eadb5ecd4586 (patch) | |
tree | e39f3f0a04dff799a41823fdb30a8067b23aa98c /Kernel/Arch/x86/Processor.h | |
parent | f2eb759901f1fb7c96654b2461ae8fc348e250bb (diff) | |
download | serenity-38fca26f542bcc9fa68755323ac4eadb5ecd4586.zip |
Kernel: Add stubs for missing x86_64 functionality
This adds just enough stubs to make the kernel compile on x86_64. Obviously
it won't do anything useful - in fact it won't even attempt to boot because
Multiboot doesn't support ELF64 binaries - but it gets those compiler errors
out of the way so more progress can be made getting all the missing
functionality in place.
Diffstat (limited to 'Kernel/Arch/x86/Processor.h')
-rw-r--r-- | Kernel/Arch/x86/Processor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Arch/x86/Processor.h b/Kernel/Arch/x86/Processor.h index 200c5831ab..5488556d4a 100644 --- a/Kernel/Arch/x86/Processor.h +++ b/Kernel/Arch/x86/Processor.h @@ -289,7 +289,7 @@ public: ALWAYS_INLINE static Thread* idle_thread() { // See comment in Processor::current_thread - return (Thread*)read_fs_u32(__builtin_offsetof(Processor, m_idle_thread)); + return (Thread*)read_fs_ptr(__builtin_offsetof(Processor, m_idle_thread)); } ALWAYS_INLINE u32 get_id() const |