mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
LibC: Remove use of ARCH(I386) in sys/arch/aarch64/regs.h
This commit is contained in:
parent
d6fa42dd5c
commit
79b623b52e
1 changed files with 4 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue