Added header file that decodes the intel x86 flags register.

Added field in kinfo that can count re-lock()ing, controlled by
ENABLE_K_LOCKCHECK in config.h.
This commit is contained in:
Ben Gras
2005-06-20 14:51:38 +00:00
parent d78cf7fbaf
commit 538e8ba2f1
3 changed files with 20 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef _IBM_CPU_H
#define _IBM_CPU_H 1
#define X86_FLAG_C (1L << 0) /* Carry */
#define X86_FLAG_P (1L << 2) /* Parity */
#define X86_FLAG_A (1L << 4) /* Aux. carry */
#define X86_FLAG_Z (1L << 6) /* Zero */
#define X86_FLAG_S (1L << 7) /* Sign */
#define X86_FLAG_T (1L << 8) /* Trap */
#define X86_FLAG_I (1L << 9) /* Interrupt */
#define X86_FLAG_D (1L << 10) /* Direction */
#define X86_FLAG_O (1L << 11) /* Overflow */
#endif