home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / ipl.h < prev    next >
Encoding:
Text File  |  1988-06-26  |  1.5 KB  |  53 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8.  
  9. #ident    "@(#)head.sys:ipl.h    1.2"
  10.  
  11. /*
  12.  * Interrupt Priority Levels
  13.  *
  14.  * The following defines are used in misc.s to map
  15.  * spl*() functions to interrupt priority levels,
  16.  * and in initializing the intpri[] array in conf.c,
  17.  * which is generated by the config command.
  18.  *
  19.  * The interrupt priority (intpri) levels specified in the
  20.  * master.d/ * /config files are SPL* constants, not ipl's.
  21.  * Thus the spl to ipl mapping can be changed to add new spls and ipls
  22.  * without changing the intpri values in the config files.
  23.  *
  24.  * IPLHI is the priority level at which interrupts are entirely disabled
  25.  * by clearing the IF flag with a cli instruction.
  26.  * Interrupts are selectively disabled at lower priority levels
  27.  * by loading interrupt masks into the PICs.
  28.  */
  29.  
  30. #define IPLHI           8
  31.  
  32. /*      spl             ipl     */
  33.  
  34. #define SPL0            0
  35. #define SPL1            1
  36. #define SPL2            2
  37. #define SPL3            3
  38. #define SPL4            4
  39. #define SPL5            5
  40. #define SPLPP           5
  41. #define SPL6            6
  42. #define SPLNI           6
  43. #define SPLTTY          7
  44.  
  45. /*
  46.  * SPL7 and SPLHI must be at the same priority level, typically IPLHI.
  47.  * The clock must be the only device at SPL7/SPLHI.
  48.  */
  49.  
  50. #define SPL7            IPLHI
  51. #define SPLHI           IPLHI
  52.  
  53.