From 31bd5b1a023124d960d79d5ace7e29b6d0a696d2 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 12 Oct 2022 21:55:05 +0200 Subject: 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. --- Userland/Libraries/LibC/sys/arch/i386/regs.h | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'Userland/Libraries/LibC/sys/arch') 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 -- cgit v1.2.3