xref: /original-bsd/lib/libc/sparc/DEFS.h (revision c3e32dec)
1 /*-
2  * Copyright (c) 1992, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This software was developed by the Computer Systems Engineering group
6  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
7  * contributed to Berkeley.
8  *
9  * %sccs.include.redist.c%
10  *
11  *	@(#)DEFS.h	8.1 (Berkeley) 06/04/93
12  */
13 
14 #ifdef PROF
15 #define	FUNC(x) \
16 	.align 4; .globl x; .proc 1; x:; .data; .align 4; 1: .long 0; \
17 	.text; save %sp,-96,%sp; sethi %hi(1b),%o0; call mcount; \
18 	or %lo(1b),%o0,%o0; restore
19 #else
20 #define	FUNC(x) \
21 	.align 4; .globl x; .proc 1; x:
22 #endif
23 
24 #define	ENTRY(x) FUNC(_##x)
25