mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
LibC: Remove use of ARCH(I386) in sys/arch/aarch64/regs.h
This commit is contained in:
parent
d6fa42dd5c
commit
79b623b52e
Notes:
sideshowbarker
2024-07-17 02:30:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/79b623b52e Pull-request: https://github.com/SerenityOS/serenity/pull/15467 Issue: https://github.com/SerenityOS/serenity/issues/15444 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/fuel-pcbox Reviewed-by: https://github.com/supercomputer7
@ -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…
Reference in New Issue
Block a user