mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +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)
|
# if defined(__cplusplus) && defined(__cpp_concepts)
|
||||||
FlatPtr ip() const
|
FlatPtr ip() const
|
||||||
{
|
{
|
||||||
# if ARCH(I386)
|
# if ARCH(X86_64)
|
||||||
return eip;
|
|
||||||
# elif ARCH(X86_64)
|
|
||||||
return rip;
|
return rip;
|
||||||
# elif ARCH(AARCH64)
|
# elif ARCH(AARCH64)
|
||||||
return pc;
|
return pc;
|
||||||
|
@ -34,9 +32,7 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext {
|
||||||
|
|
||||||
void set_ip(FlatPtr ip)
|
void set_ip(FlatPtr ip)
|
||||||
{
|
{
|
||||||
# if ARCH(I386)
|
# if ARCH(X86_64)
|
||||||
eip = ip;
|
|
||||||
# elif ARCH(X86_64)
|
|
||||||
rip = ip;
|
rip = ip;
|
||||||
# elif ARCH(AARCH64)
|
# elif ARCH(AARCH64)
|
||||||
pc = ip;
|
pc = ip;
|
||||||
|
@ -47,9 +43,7 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext {
|
||||||
|
|
||||||
FlatPtr bp() const
|
FlatPtr bp() const
|
||||||
{
|
{
|
||||||
# if ARCH(I386)
|
# if ARCH(X86_64)
|
||||||
return ebp;
|
|
||||||
# elif ARCH(X86_64)
|
|
||||||
return rbp;
|
return rbp;
|
||||||
# elif ARCH(AARCH64)
|
# elif ARCH(AARCH64)
|
||||||
return r29;
|
return r29;
|
||||||
|
@ -60,9 +54,7 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext {
|
||||||
|
|
||||||
void set_bp(FlatPtr bp)
|
void set_bp(FlatPtr bp)
|
||||||
{
|
{
|
||||||
# if ARCH(I386)
|
# if ARCH(X86_64)
|
||||||
ebp = bp;
|
|
||||||
# elif ARCH(X86_64)
|
|
||||||
rbp = bp;
|
rbp = bp;
|
||||||
# elif ARCH(AARCH64)
|
# elif ARCH(AARCH64)
|
||||||
r29 = bp;
|
r29 = bp;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue