Commit | Line | Data |
---|---|---|
586c39b1 | 1 | /* |
ec338fb6 KB |
2 | * Copyright (c) 1982 The Regents of the University of California. |
3 | * All rights reserved. | |
586c39b1 | 4 | * |
019bea33 | 5 | * %sccs.include.redist.c% |
ec338fb6 | 6 | * |
019bea33 | 7 | * @(#)DEFS.h 5.3 (Berkeley) %G% |
586c39b1 | 8 | */ |
dadab5a2 SL |
9 | |
10 | #define R0 0x001 | |
11 | #define R1 0x002 | |
12 | #define R2 0x004 | |
13 | #define R3 0x008 | |
14 | #define R4 0x010 | |
15 | #define R5 0x020 | |
16 | #define R6 0x040 | |
17 | #define R7 0x080 | |
18 | #define R8 0x100 | |
19 | #define R9 0x200 | |
20 | #define R10 0x400 | |
21 | #define R11 0x800 | |
67dace3f SL |
22 | |
23 | #ifdef PROF | |
dadab5a2 SL |
24 | #define ENTRY(x, regs) \ |
25 | .globl _/**/x; .align 2; _/**/x: .word regs; \ | |
26 | .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount | |
27 | #define ASENTRY(x, regs) \ | |
28 | .globl x; .align 2; x: .word regs; \ | |
29 | .data; 1:; .long 0; .text; moval 1b,r0; jsb mcount | |
67dace3f | 30 | #else |
dadab5a2 SL |
31 | #define ENTRY(x, regs) \ |
32 | .globl _/**/x; .align 2; _/**/x: .word regs | |
33 | #define ASENTRY(x, regs) \ | |
34 | .globl x; .align 2; x: .word regs | |
67dace3f | 35 | #endif |