/* CPU flags. Copyright 1999-2002 Johan Rydberg, jrydberg@rtmk.org. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __i386_flags_h #define __i386_flags_h 1 #define EFL_CF 0x00000001 /* carry */ #define EFL_PF 0x00000004 /* parity of low 8 bits */ #define EFL_AF 0x00000010 /* carry out of bit 3 */ #define EFL_ZF 0x00000040 /* zero */ #define EFL_SF 0x00000080 /* sign */ #define EFL_TF 0x00000100 /* trace trap */ #define EFL_IF 0x00000200 /* interrupt enable */ #define EFL_DF 0x00000400 /* direction */ #define EFL_OF 0x00000800 /* overflow */ #define EFL_IOPL 0x00003000 /* IO privilege level: */ #define EFL_IOPL_KERNEL 0x00000000 /* kernel */ #define EFL_IOPL_USER 0x00003000 /* user */ #define EFL_NT 0x00004000 /* nested task */ #define EFL_RF 0x00010000 /* resume without tracing */ #define EFL_V86MODE 0x00020000 /* virtual 8086 mode */ #define EFL_AC 0x00040000 /* alignment checking */ #define EFL_VIF 0x00080000 /* virtual interrupt enable */ #define EFL_VIP 0x00100000 /* virtual interrupt pending */ #define EFL_ID 0x00200000 /* identification bit */ #define EFL_SET_USER (EFL_IF | EFL_IOPL_USER) #endif /* i386-flags.h */