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
T_ARITHTRAP defined in line 20; used 3 times
T_BPTTRAP defined in line 14; used 3 times
T_BUSFLT defined in line 12; used 3 times
T_EMTTRAP defined in line 17; used 3 times
T_INSTRAP defined in line 13; used 3 times
T_IOTTRAP defined in line 15; used 4 times
T_PARITYFLT defined in line 22; used 3 times
T_PIRQ defined in line 19; used 2 times
T_POWRFAIL defined in line 16; used 1 times
T_RANDOMTRAP defined in line 30; used 3 times
T_SEGFLT defined in line 21; used 3 times
T_SWITCHTRAP defined in line 23; used 3 times
T_SYSCALL defined in line 18; used 3 times
USER defined in line 37; used 3 times

Usage of this include

Last modified: 1988-05-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2727
Valid CSS Valid XHTML 1.0 Strict