home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / os / bsdss4.tz / bsdss4 / bsdss / server / i386 / eflags.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-22  |  2.0 KB  |  61 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:    eflags.h,v $
  29.  * Revision 2.1  92/04/21  17:19:15  rwd
  30.  * BSDSS
  31.  * 
  32.  *
  33.  */
  34.  
  35. #ifndef    _I386_EFLAGS_H_
  36. #define    _I386_EFLAGS_H_
  37.  
  38. /*
  39.  *    i386 flags register
  40.  */
  41. #define    EFL_CF        0x00000001        /* carry */
  42. #define    EFL_PF        0x00000004        /* parity of low 8 bits */
  43. #define    EFL_AF        0x00000010        /* carry out of bit 3 */
  44. #define    EFL_ZF        0x00000040        /* zero */
  45. #define    EFL_SF        0x00000080        /* sign */
  46. #define    EFL_TF        0x00000100        /* trace trap */
  47. #define    EFL_IF        0x00000200        /* interrupt enable */
  48. #define    EFL_DF        0x00000400        /* direction */
  49. #define    EFL_OF        0x00000800        /* overflow */
  50. #define    EFL_IOPL    0x00003000        /* IO privilege level: */
  51. #define    EFL_IOPL_KERNEL    0x00000000            /* kernel */
  52. #define    EFL_IOPL_USER    0x00003000            /* user */
  53. #define    EFL_NT        0x00004000        /* nested task */
  54. #define    EFL_RF        0x00010000        /* resume without tracing */
  55. #define    EFL_VM        0x00020000        /* virtual 8086 mode */
  56.  
  57. #define    EFL_USER_SET    (EFL_IF)
  58. #define    EFL_USER_CLEAR    (EFL_IOPL|EFL_NT|EFL_RF)
  59.  
  60. #endif    _I386_EFLAGS_H_
  61.