|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1988 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: (1) source distributions retain this entire copyright ! 7: * notice and comment, and (2) distributions including binaries display ! 8: * the following acknowledgement: ``This product includes software ! 9: * developed by the University of California, Berkeley and its contributors'' ! 10: * in the documentation or other materials provided with the distribution ! 11: * and in all advertising materials mentioning features or use of this ! 12: * software. Neither the name of the University nor the names of its ! 13: * contributors may be used to endorse or promote products derived ! 14: * from this software without specific prior written permission. ! 15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 16: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 17: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 18: * ! 19: * @(#)DEFS.h 5.5 (Berkeley) 6/1/90 ! 20: */ ! 21: ! 22: /* ! 23: * Macros used to define entry points ! 24: * in assembly language routines. ! 25: */ ! 26: #if defined(GPROF) || defined(PROF) ! 27: #define ENTRY(name, regs) \ ! 28: .globl _/**/name; .align 2; _/**/name: .word regs; \ ! 29: .data; .align 2; 1: .long 0; .text; \ ! 30: pushal 1b; callf $8,mcount; ! 31: #define ASENTRY(name, regs) \ ! 32: .globl name; .align 2; name: .word regs; \ ! 33: .data; .align 2; 1: .long 0; .text; \ ! 34: pushal 1b; callf $8,mcount; ! 35: #define XENTRY(name, regs) \ ! 36: .globl _/**/name; .globl X/**/name; .align 2; \ ! 37: _/**/name: X/**/name: .word regs; \ ! 38: .data; .align 2; 1: .long 0; .text; \ ! 39: pushal 1b; callf $8,mcount ! 40: #else ! 41: #define ENTRY(name, regs) \ ! 42: .globl _/**/name; .align 2; _/**/name: .word regs ! 43: #define ASENTRY(name, regs) \ ! 44: .globl name; .align 2; name: .word regs ! 45: #define XENTRY(name, regs) \ ! 46: .globl _/**/name; .globl X/**/name; .align 2; \ ! 47: _/**/name: X/**/name: .word regs; ! 48: #endif ! 49: #define R0 0x0001 ! 50: #define R1 0x0002 ! 51: #define R2 0x0004 ! 52: #define R3 0x0008 ! 53: #define R4 0x0010 ! 54: #define R5 0x0020 ! 55: #define R6 0x0040 ! 56: #define R7 0x0080 ! 57: #define R8 0x0100 ! 58: #define R9 0x0200 ! 59: #define R10 0x0400 ! 60: #define R11 0x0800 ! 61: #define R12 0x1000
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.