Ver código fonte

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 anos atrás
pai
commit
7a8206197e
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      AK/Platform.h

+ 5 - 1
AK/Platform.h

@@ -123,7 +123,11 @@
 #ifdef NAKED
 #ifdef NAKED
 #    undef NAKED
 #    undef NAKED
 #endif
 #endif
-#define NAKED __attribute__((naked))
+#ifndef AK_ARCH_AARCH64
+#    define NAKED __attribute__((naked))
+#else
+#    define NAKED
+#endif
 
 
 #ifdef DISALLOW
 #ifdef DISALLOW
 #    undef DISALLOW
 #    undef DISALLOW