forked from ariadne/libucontext
common: factor out .ent handling
parent
2f4eb16f38
commit
fd32a2fa8c
|
@ -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)
|
||||
|
||||
|
|
|
@ -85,6 +85,8 @@
|
|||
.cpreturn; \
|
||||
daddiu $sp, FRAMESZ
|
||||
|
||||
#define ENT(__proc) .ent __proc, 0;
|
||||
|
||||
#include <common-defs.h>
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue