summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-12-25 18:43:58 +0100
committerAndreas Kling <kling@serenityos.org>2022-12-28 11:53:41 +0100
commit7b9ea3efdec9f86a1042893e8107d0b23aad8727 (patch)
treeca8e97f3a02c61f75d07625f28dab3e69998d53d /Kernel
parent36980d2a66668a164079bef80c31952698e928da (diff)
downloadserenity-7b9ea3efdec9f86a1042893e8107d0b23aad8727.zip
Kernel+Userland: Remove uses of the __i386__ compiler macro
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Arch/mcontext.h2
-rw-r--r--Kernel/Arch/x86_64/mcontext.h13
2 files changed, 1 insertions, 14 deletions
diff --git a/Kernel/Arch/mcontext.h b/Kernel/Arch/mcontext.h
index 1da7496634..034ebd93af 100644
--- a/Kernel/Arch/mcontext.h
+++ b/Kernel/Arch/mcontext.h
@@ -6,7 +6,7 @@
#pragma once
-#if defined(__i386__) || defined(__x86_64__)
+#if defined(__x86_64__)
# include <Kernel/Arch/x86_64/mcontext.h>
#elif defined(__aarch64__)
# include <Kernel/Arch/aarch64/mcontext.h>
diff --git a/Kernel/Arch/x86_64/mcontext.h b/Kernel/Arch/x86_64/mcontext.h
index b2755dd431..798367593f 100644
--- a/Kernel/Arch/x86_64/mcontext.h
+++ b/Kernel/Arch/x86_64/mcontext.h
@@ -13,18 +13,6 @@ extern "C" {
#endif
struct __attribute__((packed)) __mcontext {
-#ifdef __i386__
- uint32_t eax;
- uint32_t ecx;
- uint32_t edx;
- uint32_t ebx;
- uint32_t esp;
- uint32_t ebp;
- uint32_t esi;
- uint32_t edi;
- uint32_t eip;
- uint32_t eflags;
-#else
uint64_t rax;
uint64_t rcx;
uint64_t rdx;
@@ -43,7 +31,6 @@ struct __attribute__((packed)) __mcontext {
uint64_t r14;
uint64_t r15;
uint64_t rflags;
-#endif
uint32_t cs;
uint32_t ss;
uint32_t ds;