Commit | Line | Data |
---|---|---|
8be46aa8 KB |
1 | /*- |
2 | * Copyright (c) 1990 The Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * This code is derived from software contributed to Berkeley by | |
6 | * the Systems Programming Group of the University of Utah Computer | |
7 | * Science Department. | |
8 | * | |
9 | * %sccs.include.redist.c% | |
10 | * | |
11 | * @(#)DEFS.h 5.1 (Berkeley) %G% | |
12 | */ | |
13 | ||
14 | #ifdef PROF | |
15 | #ifdef __GNUC__ | |
16 | #define ENTRY(x) \ | |
17 | .globl _/**/x; .even; _/**/x:; .data; PROF/**/x:; .long 0; .text; \ | |
18 | link a6,#0; lea PROF/**/x,a0; jsr mcount; unlk a6 | |
19 | #else | |
20 | #define ENTRY(x) \ | |
21 | .globl _/**/x; .even; _/**/x:; .data; PROF/**/x:; .long 0; .text; \ | |
22 | lea PROF/**/x,a0; jsr mcount | |
23 | #endif | |
24 | #else | |
25 | #define ENTRY(x) \ | |
26 | .globl _/**/x; .even; _/**/x: | |
27 | #endif |