Jelajahi Sumber

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.
Gunnar Beutner 2 tahun lalu
induk
melakukan
7a8206197e
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      AK/Platform.h

+ 5 - 1
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