LibC: Remove use of ARCH(I386) in sys/arch/aarch64/regs.h

This commit is contained in:
Andreas Kling 2022-12-25 18:22:41 +01:00
parent d6fa42dd5c
commit 79b623b52e
Notes: sideshowbarker 2024-07-17 02:30:44 +09:00

View File

@ -21,9 +21,7 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext {
# if defined(__cplusplus) && defined(__cpp_concepts)
FlatPtr ip() const
{
# if ARCH(I386)
return eip;
# elif ARCH(X86_64)
# if ARCH(X86_64)
return rip;
# elif ARCH(AARCH64)
return pc;
@ -34,9 +32,7 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext {
void set_ip(FlatPtr ip)
{
# if ARCH(I386)
eip = ip;
# elif ARCH(X86_64)
# if ARCH(X86_64)
rip = ip;
# elif ARCH(AARCH64)
pc = ip;
@ -47,9 +43,7 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext {
FlatPtr bp() const
{
# if ARCH(I386)
return ebp;
# elif ARCH(X86_64)
# if ARCH(X86_64)
return rbp;
# elif ARCH(AARCH64)
return r29;
@ -60,9 +54,7 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext {
void set_bp(FlatPtr bp)
{
# if ARCH(I386)
ebp = bp;
# elif ARCH(X86_64)
# if ARCH(X86_64)
rbp = bp;
# elif ARCH(AARCH64)
r29 = bp;