From 7a8206197eae9937a0751ac9e22d55aaf950cec8 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 12 Oct 2022 22:05:41 +0200 Subject: [PATCH] AK: Stub out the NAKED macro on AARCH64 This is almost certainly incorrect but we'll see about that once the kernel actually gets to userspace init. --- AK/Platform.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AK/Platform.h b/AK/Platform.h index c8dd8ee43b..59d767a93d 100644 --- a/AK/Platform.h +++ b/AK/Platform.h @@ -123,7 +123,11 @@ #ifdef NAKED # undef NAKED #endif -#define NAKED __attribute__((naked)) +#ifndef AK_ARCH_AARCH64 +# define NAKED __attribute__((naked)) +#else +# define NAKED +#endif #ifdef DISALLOW # undef DISALLOW