diff --git a/arch/common/common-defs.h b/arch/common/common-defs.h index 0f3feea..e2ebe24 100644 --- a/arch/common/common-defs.h +++ b/arch/common/common-defs.h @@ -13,11 +13,15 @@ # define POP_FRAME(__proc) #endif +#ifndef ENT +# define ENT(__proc) +#endif + #define FUNC(__proc) \ .globl __proc; \ .align 2; \ .type __proc, @function; \ - .ent __proc, 0; \ + ENT(__proc) \ __proc: \ SETUP_FRAME(__proc) diff --git a/arch/mips64/defs.h b/arch/mips64/defs.h index cb2fdbd..ade5288 100644 --- a/arch/mips64/defs.h +++ b/arch/mips64/defs.h @@ -85,6 +85,8 @@ .cpreturn; \ daddiu $sp, FRAMESZ +#define ENT(__proc) .ent __proc, 0; + #include #endif