1 /* 2 * Copyright (c) 1988 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16 * 17 * @(#)SYS.h 7.2 (Berkeley) 06/29/88 18 */ 19 20 /* 21 * Macros used to define entry points 22 * in assembly language routines. 23 */ 24 #if defined(GPROF) || defined(PROF) 25 #define ENTRY(name, regs) \ 26 .globl _/**/name; .align 2; _/**/name: .word regs; callf $4,mcount 27 #define ASENTRY(name, regs) \ 28 .globl name; .align 2; name: .word regs; callf $4,mcount 29 #else 30 #define ENTRY(name, regs) \ 31 .globl _/**/name; .align 2; _/**/name: .word regs 32 #define ASENTRY(name, regs) \ 33 .globl name; .align 2; name: .word regs 34 #endif 35 #define R0 0x0001 36 #define R1 0x0002 37 #define R2 0x0004 38 #define R3 0x0008 39 #define R4 0x0010 40 #define R5 0x0020 41 #define R6 0x0040 42 #define R7 0x0080 43 #define R8 0x0100 44 #define R9 0x0200 45 #define R10 0x0400 46 #define R11 0x0800 47 #define R12 0x1000 48