one too many levels of indirection (from ks@purdue)
[unix-history] / usr / src / lib / libc / vax / DEFS.h
CommitLineData
586c39b1
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
6 * @(#)DEFS.h 5.1 (Berkeley) %G%
7 */
dadab5a2
SL
8
9#define R0 0x001
10#define R1 0x002
11#define R2 0x004
12#define R3 0x008
13#define R4 0x010
14#define R5 0x020
15#define R6 0x040
16#define R7 0x080
17#define R8 0x100
18#define R9 0x200
19#define R10 0x400
20#define R11 0x800
67dace3f
SL
21
22#ifdef PROF
dadab5a2
SL
23#define ENTRY(x, regs) \
24 .globl _/**/x; .align 2; _/**/x: .word regs; \
25 .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount
26#define ASENTRY(x, regs) \
27 .globl x; .align 2; x: .word regs; \
28 .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount
67dace3f 29#else
dadab5a2
SL
30#define ENTRY(x, regs) \
31 .globl _/**/x; .align 2; _/**/x: .word regs
32#define ASENTRY(x, regs) \
33 .globl x; .align 2; x: .word regs
67dace3f 34#endif