|
|
1.1 root 1: /* @(#)DEFS.h 1.1 86/02/03 SMI */
2:
3: /*
4: * Copyright (c) 1983 by Sun Microsystems, Inc.
5: */
6:
7:
8:
9: #ifdef PROF
10: .globl mcount
11: #define MCOUNT lea 277$,a0;\
12: .data; 277$: .long 0; .text;\
13: jsr mcount
14: #define LINK link a6,#0
15: #define RTMCOUNT moveml #0xC0C0,sp@-; MCOUNT; moveml sp@+,#0x0303
16: #define RET unlk a6; rts
17: #define RETN(n) unlk a6; rts #n
18: #define PARAMX( n ) a6@(8+n)
19:
20: #else not PROF
21:
22: #define MCOUNT
23: #define RTMCOUNT
24: #define LINK
25: #define RET rts
26: #define RETN(n) rts #n
27: #define PARAMX( n ) sp@(4+n)
28:
29: #endif not PROF
30:
31: #define ENTRY(x) .globl _/**/x; _/**/x: LINK; MCOUNT
32: #define RTENTRY(x) .globl x; x: LINK; RTMCOUNT
33: #define PARAM0 PARAMX(-4)
34: #define PARAM PARAMX(0)
35: #define PARAM2 PARAMX(4)
36: #define PARAM3 PARAMX(8)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.