xref: /csrg-svn/lib/libc/sparc/DEFS.h (revision 61176)
154381Storek /*-
2*61176Sbostic  * Copyright (c) 1992, 1993
3*61176Sbostic  *	The Regents of the University of California.  All rights reserved.
454383Storek  *
554383Storek  * This software was developed by the Computer Systems Engineering group
654383Storek  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
754383Storek  * contributed to Berkeley.
854383Storek  *
954381Storek  * %sccs.include.redist.c%
1054381Storek  *
11*61176Sbostic  *	@(#)DEFS.h	8.1 (Berkeley) 06/04/93
1254381Storek  */
1354381Storek 
1454381Storek #ifdef PROF
1554381Storek #define	FUNC(x) \
1654381Storek 	.align 4; .globl x; .proc 1; x:; .data; .align 4; 1: .long 0; \
1754381Storek 	.text; save %sp,-96,%sp; sethi %hi(1b),%o0; call mcount; \
1854381Storek 	or %lo(1b),%o0,%o0; restore
1954381Storek #else
2054381Storek #define	FUNC(x) \
2154381Storek 	.align 4; .globl x; .proc 1; x:
2254381Storek #endif
2354381Storek 
2454381Storek #define	ENTRY(x) FUNC(_##x)
25