X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=include%2Farm_features.h;fp=include%2Farm_features.h;h=9f51ab811ea8924c6f9278ab8cbe1c965fd7ef5a;hp=4f216a3c23d9aef5c874f063f9578e6a7f715241;hb=c57af5e60d8a9cb3eb4a0f4513b211f930a4558c;hpb=b9a092f587202b35fd32440f48899515e3924109 diff --git a/include/arm_features.h b/include/arm_features.h index 4f216a3c..9f51ab81 100644 --- a/include/arm_features.h +++ b/include/arm_features.h @@ -52,8 +52,14 @@ #define HAVE_NEON32 #endif +#if defined(__APPLE__) && defined(__aarch64__) +#define ASM_SEPARATOR %% +#else +#define ASM_SEPARATOR ; +#endif + /* global function/external symbol */ -#ifndef __MACH__ +#ifndef __APPLE__ #define ESYM(name) name #define FUNCTION(name) \ @@ -61,16 +67,25 @@ .type name, %function; \ name +#define ESIZE(name_, size_) \ + .size name_, size_ + +#define EOBJECT(name_) \ + .type name_, %object + #define EXTRA_UNSAVED_REGS #else #define ESYM(name) _##name #define FUNCTION(name) \ - .globl ESYM(name); \ - name: \ + name: ASM_SEPARATOR \ + .globl ESYM(name) ASM_SEPARATOR \ ESYM(name) +#define ESIZE(name_, size_) +#define EOBJECT(name_) + // r7 is preserved, but add it for EABI alignment.. #define EXTRA_UNSAVED_REGS r7, r9,