common: factor out .ent handling

master
Ariadne Conill 2020-03-29 14:03:18 +00:00
parent 2f4eb16f38
commit fd32a2fa8c
2 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -85,6 +85,8 @@
.cpreturn; \
daddiu $sp, FRAMESZ
#define ENT(__proc) .ent __proc, 0;
#include <common-defs.h>
#endif