diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2022-10-12 21:55:05 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-14 13:01:13 +0200 |
commit | 31bd5b1a023124d960d79d5ace7e29b6d0a696d2 (patch) | |
tree | c1ff3c1b0ddecb5809470aaf9a17f53563c0062d /Userland/Libraries/LibC/sys/arch | |
parent | c18c84dbfdc18effe5f8c5ffb56b2f5549e6bf90 (diff) | |
download | serenity-31bd5b1a023124d960d79d5ace7e29b6d0a696d2.zip |
AK+Userland: Stub out code that isn't currently implemented on AARCH64
Even though this almost certainly wouldn't run properly even if we had
a working kernel for AARCH64 this at least lets us build all the
userland binaries.
Diffstat (limited to 'Userland/Libraries/LibC/sys/arch')
-rw-r--r-- | Userland/Libraries/LibC/sys/arch/i386/regs.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Userland/Libraries/LibC/sys/arch/i386/regs.h b/Userland/Libraries/LibC/sys/arch/i386/regs.h index 478923ba78..4ce952ee5e 100644 --- a/Userland/Libraries/LibC/sys/arch/i386/regs.h +++ b/Userland/Libraries/LibC/sys/arch/i386/regs.h @@ -23,8 +23,10 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext { { # if ARCH(I386) return eip; -# else +# elif ARCH(X86_64) return rip; +# else + TODO_AARCH64(); # endif } @@ -32,8 +34,11 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext { { # if ARCH(I386) eip = ip; -# else +# elif ARCH(X86_64) rip = ip; +# else + (void)ip; + TODO_AARCH64(); # endif } @@ -41,8 +46,10 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext { { # if ARCH(I386) return ebp; -# else +# elif ARCH(X86_64) return rbp; +# else + TODO_AARCH64(); # endif } @@ -50,8 +57,11 @@ struct [[gnu::packed]] PtraceRegisters : public __mcontext { { # if ARCH(I386) ebp = bp; -# else +# elif ARCH(X86_64) rbp = bp; +# else + (void)bp; + TODO_AARCH64(); # endif } # endif |