fix compilation issues in aarch64 ports
[lunaix-os.git] / lunaix-os / arch / aarch64 / includes / asm / aa64_asm.h
index 1682de7868d0e2630debeb4c6daca206a3fa7508..f617cfc23ab764d912eed198d7e40a6b6eda9f87 100644 (file)
@@ -1,9 +1,19 @@
 #ifndef __LUNAIX_AA64_ASM_H
 #define __LUNAIX_AA64_ASM_H
 
-#include <lunaix/compiler.h>
+#define __const_expr_sign #
+#define __comma() ,
+#define __const_expr()    __const_expr_sign
 
 #define __sr_encode(op0, op1, crn, crm, op2)    \
             s##op0##_##op1##_c##crn##_c##crm##_##op2
+#define __sysop_encode(op1, crn, crm, op2)      \
+            "#" #op1 ",C" #crn ",C" #crm ",#" #op2
+
+#ifndef __ASM__
+
+#include <lunaix/compiler.h>
 
+#else
+#endif
 #endif /* __LUNAIX_AA64_ASM_H */