summaryrefslogtreecommitdiff
path: root/Kernel/Arch/x86/Processor.h
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-23 21:54:41 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-24 09:27:13 +0200
commit38fca26f542bcc9fa68755323ac4eadb5ecd4586 (patch)
treee39f3f0a04dff799a41823fdb30a8067b23aa98c /Kernel/Arch/x86/Processor.h
parentf2eb759901f1fb7c96654b2461ae8fc348e250bb (diff)
downloadserenity-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.h2
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