1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

Kernel+Userland: Remove uses of the __i386__ compiler macro

This commit is contained in:
Andreas Kling 2022-12-25 18:43:58 +01:00
parent 36980d2a66
commit 7b9ea3efde
5 changed files with 6 additions and 37 deletions

View file

@ -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>

View file

@ -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;