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

##### Macros

    SUPV              X
    T_ARITHTRAP       X
    T_BPTTRAP         X
    T_BUSFLT          X
    T_EMTTRAP         X
    T_INSTRAP         X
    T_IOTTRAP         X
    T_PARITYFLT       X
    T_PIRQ            X
    T_POWRFAIL        X
    T_RANDOMTRAP      X
    T_SEGFLT          X
    T_SWITCHTRAP      X
    T_SYSCALL         X
    T_ZEROTRAP        X
    USER              X

       1: /*
       2:  * Copyright (c) 1986 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:  *	@(#)trap.h	1.1 (2.10BSD Berkeley) 12/1/86
       7:  */
       8:
       9: /*
      10:  * Trap type values
      11:  */
      12: #define T_BUSFLT    000     /* bus error */
      13: #define T_INSTRAP   001     /* illegal instruction */
      14: #define T_BPTTRAP   002     /* bpt/trace trap */
      15: #define T_IOTTRAP   003     /* iot trap */
      16: #define T_POWRFAIL  004     /* power failure */
      17: #define T_EMTTRAP   005     /* emt trap */
      18: #define T_SYSCALL   006     /* system call */
      19: #define T_PIRQ      007     /* program interrupt request */
      20: #define T_ARITHTRAP 010     /* floating point trap */
      21: #define T_SEGFLT    011     /* segmentation fault */
      22: #define T_PARITYFLT 012     /* parity fault */
      23: #define T_SWITCHTRAP    014     /* process switch */
      24: /*
      25:  * T_RANDOMTRAP is used by autoconfig/do_config.c when it substitutes
      26:  * the trap routine for the standard device interrupt routines when
      27:  * probing a device in case the device probe routine causes an interrupt.
      28:  * Ignored in trap.c
      29:  */
      30: #define T_RANDOMTRAP    016     /* random trap */
      31: #define T_ZEROTRAP  017     /* trap to zero */
      32:
      33: /*
      34:  * User mode flag added to trap code passed to trap routines
      35:  * if trap is from user space.
      36:  */
      37: #define USER        020
      38: #define SUPV        040

#### Defined macros

SUPV defined in line 38; used 2 times

- in /usr/src/sys/pdp/trap.c line 83, 272

T_ARITHTRAP defined in line 20; used 3 times

- in /usr/src/sys/pdp/scb.s line 159
- in /usr/src/sys/pdp/trap.c line 181-184(2)

T_BPTTRAP defined in line 14; used 3 times

- in /usr/src/sys/pdp/scb.s line 82
- in /usr/src/sys/pdp/trap.c line 161, 258

T_BUSFLT defined in line 12; used 3 times

- in /usr/src/sys/pdp/scb.s line 80
- in /usr/src/sys/pdp/trap.c line 123, 256

T_EMTTRAP defined in line 17; used 3 times

- in /usr/src/sys/pdp/scb.s line 89
- in /usr/src/sys/pdp/trap.c line 170, 260

T_INSTRAP defined in line 13; used 3 times

- in /usr/src/sys/pdp/scb.s line 81
- in /usr/src/sys/pdp/trap.c line 127, 257

T_IOTTRAP defined in line 15; used 4 times

- in /usr/src/sys/pdp/scb.s line 84-86(2)
- in /usr/src/sys/pdp/trap.c line 166, 259

T_PARITYFLT defined in line 22; used 3 times

- in /usr/src/sys/pdp/scb.s line 119
- in /usr/src/sys/pdp/trap.c line 232-234(2)

T_PIRQ defined in line 19; used 2 times

- in /usr/src/sys/pdp/scb.s line 158
- in /usr/src/sys/pdp/trap.c line 261

T_POWRFAIL defined in line 16; used 1 times

- in /usr/src/sys/pdp/scb.s line 88

T_RANDOMTRAP defined in line 30; used 3 times

- in /usr/src/sys/autoconfig/do_config.c line 348
- in /usr/src/sys/pdp/trap.c line 266, 293

T_SEGFLT defined in line 21; used 3 times

- in /usr/src/sys/pdp/scb.s line 160
- in /usr/src/sys/pdp/trap.c line 211, 262

T_SWITCHTRAP defined in line 23; used 3 times

- in /usr/src/sys/pdp/mch_trap.s line 109
- in /usr/src/sys/pdp/trap.c line 253, 264

T_SYSCALL defined in line 18; used 3 times

- in /usr/src/sys/pdp/mch_start.s line 25
- in /usr/src/sys/pdp/scb.s line 90
- in /usr/src/sys/pdp/trap.c line 263

T_ZEROTRAP defined in line 31; used 4 times

- in /usr/src/sys/autoconfig/do_config.c line 338
- in /usr/src/sys/pdp/scb.s line 76
- in /usr/src/sys/pdp/trap.c line 265, 289

USER defined in line 37; used 3 times

- in /usr/src/sys/pdp/trap.c line 79, 242, 295

#### Usage of this include

trap.h used 5 times

- in /usr/src/sys/autoconfig/do_config.c line 16
- in /usr/src/sys/pdp/mch_start.s line 12
- in /usr/src/sys/pdp/mch_trap.s line 11
- in /usr/src/sys/pdp/scb.s line 10
- in /usr/src/sys/pdp/trap.c line 13

Last modified: 1988-05-01 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 625 |