# 2.11BSD#431 - /usr/src/sys/pdp/DEFS.h

##### Macros

    ASENTRY           X
    CHAR              X
    CONST             X
    DEC_GLOBAL        X
    DEC_LOCAL         X
    ENTRY             X
    HIGH              X
    HIPRI             X
    INT               X
    INTSTK            X
    NET               X
    NETPRI            X
    PROFCODE          X
    P_ASENTRY         X
    P_ENTRY           X
    SPACE             X
    SPL7              X
    SPLHIGH           X
    SPLLOW            X
    SPLNET            X
    STRING            X
    _DEFS_            X
    mfpd              X
    mtpd              X

       1: /*
       2:  * Copyright (c) 1987 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	1.2 (2.11BSD GTE) 12/24/92
       7:  */
       8:
       9: #ifndef _DEFS_
      10: #define _DEFS_
      11: /*
      12:  * Machine language assist.  Uses the C preprocessor to produce suitable code
      13:  * for various 11's.
      14:  */
      15: #include "localopts.h"
      16: #include "assym.h"
      17:
      18: #define INTSTK  500.                    /* bytes for interrupt stack */
      19:
      20: #ifdef PROF
      21: #	define        HIGH    06              /* See also the :splfix files */
      22: #	define        HIPRI   0300            /* Many spl's are done in-line */
      23: #else
      24: #	define        HIGH    07
      25: #	define        HIPRI   0340
      26: #endif
      27:
      28: #	define        NET     02
      29: #	define        NETPRI  0100
      30:
      31: /*
      32:  * adapt to any 11 at boot
      33:  */
      34: #ifdef  GENERIC
      35: #	undef NONSEPARATE     /* Enable support for separate I&D if found */
      36: #endif
      37:
      38: #ifdef NONSEPARATE              /* 11/40, 34, 23, 24 */
      39: #	define mfpd           mfpi
      40: #	define mtpd           mtpi
      41: #endif
      42:
      43: #if defined(GENERIC) || defined(SUPERVISOR) || defined(NONSEPARATE)
      44:         /*
      45: 	 * GENERIC: movb instruction are available on all PDP-11s.
      46: 	 *
      47: 	 * SUPERVISOR: can't use spl instructions even if the machine
      48: 	 * supports them since spl is a privileged instruction.
      49: 	 */
      50: #	define        SPLHIGH         movb    $HIPRI,PS
      51: #	define        SPL7            movb    $0340,PS
      52: #	define        SPLLOW          clrb    PS
      53: #	define        SPLNET          movb    $NETPRI,PS
      54: #else
      55: #	define SPLHIGH                spl     HIGH
      56: #	define SPL7           spl     7
      57: #	define SPLLOW         spl     0
      58: #	define SPLNET         spl     NET
      59: #endif
      60:
      61:
      62: #define CONST(s, x, v)  DEC_/**/s(x); x=v;
      63: #define INT(s, x, v)    .data; .even; DEC_/**/s(x); x:; v; .text;
      64: #define CHAR(s, x, v)   .data; DEC_/**/s(x); x:; .byte v; .text;
      65: #define STRING(s, x, v) .data; DEC_/**/s(x); x:; v; .text;
      66: #define SPACE(s, x, n)  .bss;  .even; DEC_/**/s(x); x:; .=.+[n]; .text;
      67:
      68: #define DEC_GLOBAL(x)   .globl x;
      69: #define DEC_LOCAL(x)
      70:
      71: /*
      72:  * Macros for compatibility with standard library routines that we have
      73:  * copies of ...
      74:  */
      75: #define ENTRY(x)        .globl _/**/x; _/**/x:;
      76: #define ASENTRY(x)      .globl x; x:;
      77:
      78: #define P_ENTRY(x)      .globl _/**/x; _/**/x:; PROFCODE;
      79: #define P_ASENTRY(x)    .globl x; x:; PROFCODE;
      80:
      81: /*
      82:  * PROFCODE:
      83:  * - kernel profiling not currently implemented.
      84:  */
      85: #define PROFCODE        ;
      86: #endif _DEFS_

#### Defined macros

ASENTRY defined in line 76; used 15 times

- in /usr/src/sys/pdp/mch_KScall.s line 147
- in /usr/src/sys/pdp/mch_dump.s line 84
- in /usr/src/sys/pdp/mch_dzpdma.s line 28
- in /usr/src/sys/pdp/mch_start.s line 14
- in /usr/src/sys/pdp/mch_trap.s line 57, 160, 177, 201, 231, 267
- in /usr/src/sys/pdp/net_SKcall.s line 195
- in /usr/src/sys/pdp/net_trap.s line 22
- in /usr/src/sys/pdp/scb.s line 269, 288-291(2)

CHAR defined in line 64; used 2 times

- in /usr/src/sys/pdp/mch_vars.s line 17-20(2)

CONST defined in line 62; used 3 times

- in /usr/src/sys/pdp/mch_vars.s line 11, 42
- in /usr/src/sys/pdp/scb.s line 220

DEC_GLOBAL defined in line 68; never used
DEC_LOCAL defined in line 69; never used
ENTRY defined in line 75; used 98 times

- in /usr/src/sys/pdp/__spl0.s line 2, 12
- in /usr/src/sys/pdp/__spl1.s line 2, 12
- in /usr/src/sys/pdp/__spl2.s line 2, 12
- in /usr/src/sys/pdp/__spl3.s line 2, 12
- in /usr/src/sys/pdp/__spl4.s line 2, 12
- in /usr/src/sys/pdp/__spl5.s line 2, 12
- in /usr/src/sys/pdp/__spl6.s line 2, 12
- in /usr/src/sys/pdp/__spl7.s line 2, 12
- in /usr/src/sys/pdp/__splbio.s line 2, 12
- in /usr/src/sys/pdp/__splclock.s line 2, 12
- in /usr/src/sys/pdp/__splhigh.s line 2, 12
- in /usr/src/sys/pdp/__splimp.s line 2, 12
- in /usr/src/sys/pdp/__splnet.s line 2, 12
- in /usr/src/sys/pdp/__splsoftclock.s line 2, 12
- in /usr/src/sys/pdp/__spltty.s line 2, 12
- in /usr/src/sys/pdp/mch_KScall.s line 23
- in /usr/src/sys/pdp/mch_backup.s line 59, 85
- in /usr/src/sys/pdp/mch_click.s line 22, 77, 119, 191
- in /usr/src/sys/pdp/mch_copy.s line 27, 44, 59, 79, 112, 123, 132, 144, 180, 190, 213, 223, 293, 310, 332, 383, 435, 495
- in /usr/src/sys/pdp/mch_dump.s line 15, 46
- in /usr/src/sys/pdp/mch_fpsim.s line 50
- in /usr/src/sys/pdp/mch_start.s line 106
- in /usr/src/sys/pdp/mch_xxx.s line 27, 44, 61, 114, 143-144(2), 203, 243, 266, 295, 375, 425, 464, 491, 506, 530, 557, 574, 607, 629, 643
- in /usr/src/sys/pdp/net_SKcall.s line 22
- in /usr/src/sys/pdp/net_copy.s line 23, 35, 63, 69, 121, 139, 219, 247, 273, 290
- in /usr/src/sys/pdp/net_mbuf.s line 32, 45
- in /usr/src/sys/pdp/net_trap.s line 70
- in /usr/src/sys/pdp/net_xxx.s line 23, 52, 86
- in /usr/src/sys/pdp/scb.s line 280

HIGH defined in line 24; never used
HIPRI defined in line 25; never used
INT defined in line 63; used 13 times

- in /usr/src/sys/pdp/mch_vars.s line 13-16(4), 29-37(4), 43
- in /usr/src/sys/pdp/mch_xxx.s line 58-59(2)
- in /usr/src/sys/pdp/scb.s line 241, 248

INTSTK defined in line 18; used 2 times

- in /usr/src/sys/pdp/mch_vars.s line 41-42(2)

NET defined in line 28; never used
NETPRI defined in line 29; never used
PROFCODE defined in line 85; never used
P_ASENTRY defined in line 79; never used
P_ENTRY defined in line 78; never used
SPACE defined in line 66; used 5 times

- in /usr/src/sys/pdp/mch_backup.s line 11
- in /usr/src/sys/pdp/mch_dump.s line 33
- in /usr/src/sys/pdp/mch_trap.s line 14
- in /usr/src/sys/pdp/mch_vars.s line 41
- in /usr/src/sys/pdp/mch_xxx.s line 336

SPL7 defined in line 56; used 14 times

- in /usr/src/lib/libc/pdp/crt/csv.s line 156, 287
- in /usr/src/sys/pdp/mch_csv.s line 156, 287
- in /usr/src/sys/pdp/mch_dzpdma.s line 79
- in /usr/src/sys/pdp/mch_trap.s line 81, 135, 269
- in /usr/src/sys/pdp/mch_xxx.s line 147
- in /usr/src/sys/pdp/net_csv.s line 156, 287
- in /usr/src/sys/pdp/net_mbuf.s line 40, 53
- in /usr/src/sys/pdp/net_trap.s line 73

SPLHIGH defined in line 55; used 4 times

- in /usr/src/sys/pdp/mch_fpsim.s line 562, 572, 582, 609

SPLLOW defined in line 57; used 3 times

- in /usr/src/sys/pdp/mch_trap.s line 54
- in /usr/src/sys/pdp/mch_xxx.s line 73, 175

SPLNET defined in line 58; used 4 times

- in /usr/src/sys/pdp/mch_click.s line 28, 138
- in /usr/src/sys/pdp/mch_trap.s line 92
- in /usr/src/sys/pdp/net_trap.s line 76

STRING defined in line 65; used 6 times

- in /usr/src/sys/pdp/mch_xxx.s line 383-387(2), 431-435(2)
- in /usr/src/sys/pdp/scb.s line 262, 311

_DEFS_ defined in line 10; never used
mfpd defined in line 39; used 35 times

- in /usr/src/sys/pdp/mch_KScall.s line 46
- in /usr/src/sys/pdp/mch_copy.s line 33, 65, 117, 184, 314, 344, 353, 361, 395, 411, 447-451(2), 526, 542
- in /usr/src/sys/pdp/mch_dump.s line 57-60(2)
- in /usr/src/sys/pdp/mch_fpsim.s line 566
- in /usr/src/sys/pdp/mch_trap.s line 69, 184
- in /usr/src/sys/pdp/mch_xxx.s line 125, 223
- in /usr/src/sys/pdp/net_SKcall.s line 53
- in /usr/src/sys/pdp/net_copy.s line 26, 38, 65, 86, 124, 159, 256, 294
- in /usr/src/sys/pdp/net_trap.s line 25, 43-47(2)
- in /usr/src/sys/pdp/net_xxx.s line 55

mtpd defined in line 40; used 41 times

- in /usr/src/sys/pdp/mch_KScall.s line 69
- in /usr/src/sys/pdp/mch_copy.s line 73, 138, 218, 298, 397, 406, 413, 528, 537, 544
- in /usr/src/sys/pdp/mch_fpsim.s line 587
- in /usr/src/sys/pdp/mch_start.s line 45, 94
- in /usr/src/sys/pdp/mch_trap.s line 116, 188
- in /usr/src/sys/pdp/mch_xxx.s line 162, 225
- in /usr/src/sys/pdp/net_SKcall.s line 57, 143-147(3), 164, 177-182(3)
- in /usr/src/sys/pdp/net_copy.s line 46, 72, 88, 107, 143, 162, 187, 229, 278
- in /usr/src/sys/pdp/net_trap.s line 45-50(2), 56-58(2)
- in /usr/src/sys/pdp/net_xxx.s line 57, 69

#### Usage of this include

DEFS.h used 35 times

- in /usr/src/lib/libc/pdp/crt/csv.s line 69
- in /usr/src/sys/pdp/__spl0.s line 1
- in /usr/src/sys/pdp/__spl1.s line 1
- in /usr/src/sys/pdp/__spl2.s line 1
- in /usr/src/sys/pdp/__spl3.s line 1
- in /usr/src/sys/pdp/__spl4.s line 1
- in /usr/src/sys/pdp/__spl5.s line 1
- in /usr/src/sys/pdp/__spl6.s line 1
- in /usr/src/sys/pdp/__spl7.s line 1
- in /usr/src/sys/pdp/__splbio.s line 1
- in /usr/src/sys/pdp/__splclock.s line 1
- in /usr/src/sys/pdp/__splhigh.s line 1
- in /usr/src/sys/pdp/__splimp.s line 1
- in /usr/src/sys/pdp/__splnet.s line 1
- in /usr/src/sys/pdp/__splsoftclock.s line 1
- in /usr/src/sys/pdp/__spltty.s line 1
- in /usr/src/sys/pdp/mch_KScall.s line 9
- in /usr/src/sys/pdp/mch_backup.s line 9
- in /usr/src/sys/pdp/mch_click.s line 9
- in /usr/src/sys/pdp/mch_copy.s line 9
- in /usr/src/sys/pdp/mch_csv.s line 69
- in /usr/src/sys/pdp/mch_dump.s line 8
- in /usr/src/sys/pdp/mch_dzpdma.s line 8
- in /usr/src/sys/pdp/mch_fpsim.s line 22
- in /usr/src/sys/pdp/mch_start.s line 9
- in /usr/src/sys/pdp/mch_trap.s line 8
- in /usr/src/sys/pdp/mch_vars.s line 8
- in /usr/src/sys/pdp/mch_xxx.s line 8
- in /usr/src/sys/pdp/net_SKcall.s line 9
- in /usr/src/sys/pdp/net_copy.s line 9
- in /usr/src/sys/pdp/net_csv.s line 69
- in /usr/src/sys/pdp/net_mbuf.s line 9
- in /usr/src/sys/pdp/net_trap.s line 9
- in /usr/src/sys/pdp/net_xxx.s line 9
- in /usr/src/sys/pdp/scb.s line 9

Last modified: 1992-12-27 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 879 |