xref: /original-bsd/lib/libc/vax/DEFS.h (revision 54e6d6c7)
1 /*
2  * Copyright (c) 1982 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms are permitted
6  * provided that the above copyright notice and this paragraph are
7  * duplicated in all such forms and that any documentation,
8  * advertising materials, and other materials related to such
9  * distribution and use acknowledge that the software was developed
10  * by the University of California, Berkeley.  The name of the
11  * University may not be used to endorse or promote products derived
12  * from this software without specific prior written permission.
13  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  *	@(#)DEFS.h	5.2 (Berkeley) 02/15/89
18  */
19 
20 #define R0	0x001
21 #define R1	0x002
22 #define R2	0x004
23 #define R3	0x008
24 #define R4	0x010
25 #define R5	0x020
26 #define R6	0x040
27 #define	R7 	0x080
28 #define	R8	0x100
29 #define	R9	0x200
30 #define	R10	0x400
31 #define	R11	0x800
32 
33 #ifdef PROF
34 #define	ENTRY(x, regs) \
35 	.globl _/**/x; .align 2; _/**/x: .word regs; \
36 	.data; 1:; .long 0; .text; moval 1b,r0; jsb mcount
37 #define	ASENTRY(x, regs) \
38 	.globl x; .align 2; x: .word regs; \
39 	.data; 1:; .long 0; .text; moval 1b,r0; jsb mcount
40 #else
41 #define	ENTRY(x, regs) \
42 	.globl _/**/x; .align 2; _/**/x: .word regs
43 #define	ASENTRY(x, regs) \
44 	.globl x; .align 2; x: .word regs
45 #endif
46