Put some common entry stuff into _ENTRY and use it.
This commit is contained in:
parent
9a641fd145
commit
53f3286e0a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: asm.h,v 1.13 2011/02/12 16:31:32 matt Exp $ */
|
||||
/* $NetBSD: asm.h,v 1.14 2013/07/13 10:26:30 skrll Exp $ */
|
||||
|
||||
/* $OpenBSD: asm.h,v 1.12 2001/03/29 02:15:57 mickey Exp $ */
|
||||
|
||||
|
@ -42,15 +42,17 @@
|
|||
|
||||
#define _ASM_LS_CHAR !
|
||||
|
||||
#define LEAF_ENTRY_NOPROFILE(x) !\
|
||||
#define _ENTRY(x) \
|
||||
! .text ! .align 4 !\
|
||||
.export x, entry ! .label x ! .proc !\
|
||||
.export x, entry ! .label x ! .proc
|
||||
|
||||
#define LEAF_ENTRY_NOPROFILE(x) !\
|
||||
_ENTRY(x) !\
|
||||
.callinfo frame=0, no_calls, save_rp !\
|
||||
.entry
|
||||
|
||||
#define ENTRY_NOPROFILE(x,n) !\
|
||||
! .text ! .align 4 !\
|
||||
.export x, entry ! .label x ! .proc !\
|
||||
_ENTRY(x) !\
|
||||
.callinfo frame=n, calls, save_rp, save_sp !\
|
||||
.entry
|
||||
|
||||
|
|
Loading…
Reference in New Issue