home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / os / bsdss4.tz / bsdss4 / bsdss / server / sys / synch.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-22  |  1.9 KB  |  70 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1992 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie Mellon 
  24.  * the rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log:    synch.h,v $
  29.  * Revision 2.1  92/04/21  17:15:26  rwd
  30.  * BSDSS
  31.  * 
  32.  *
  33.  */
  34.  
  35. /*
  36.  * SPL level definitions.
  37.  */
  38. #define    SPL_COUNT    6
  39.  
  40. #define    SPL0        0
  41.                 /* placeholder - not used */
  42. #define    SPLSOFTCLOCK    1
  43.                 /* level '0x8' */
  44. #define    SPLNET        2
  45.                 /* level '0xc' */
  46. #define    SPLTTY        3
  47.                 /* level '0x15' */
  48. #define    SPLBIO        3
  49.                 /* level '0x15' */
  50. #define    SPLIMP        4
  51.                 /* level '0x16' */
  52. #define    SPLHIGH        5
  53.                 /* level '0x18' */
  54.  
  55.  
  56. #define    spl0()        (spl_n(SPL0))
  57. #define    splsoftclock()    (spl_n(SPLSOFTCLOCK))
  58. #define    splnet()    (spl_n(SPLNET))
  59. #define    splbio()    (spl_n(SPLBIO))
  60. #define    spltty()    (spl_n(SPLTTY))
  61. #define    splimp()    (spl_n(SPLIMP))
  62. #define    splhigh()    (spl_n(SPLHIGH))
  63. #define    splx(s)        (spl_n(s))
  64. #define splsched()    (spl_n(SPLHIGH))
  65. #define splvm()        (spl_n(SPLIMP))
  66.  
  67. extern int    spl_n();
  68. extern void    interrupt_enter();
  69. extern void    interrupt_exit();
  70.