patch-2.4.0-test7 linux/include/asm-i386/apicdef.h

Next file: linux/include/asm-i386/bugs.h
Previous file: linux/include/asm-i386/apic.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/include/asm-i386/apicdef.h linux/include/asm-i386/apicdef.h
@@ -11,10 +11,12 @@
 #define		APIC_DEFAULT_PHYS_BASE	0xfee00000
  
 #define		APIC_ID		0x20
+#define			APIC_ID_MASK		(0x0F<<24)
 #define			GET_APIC_ID(x)		(((x)>>24)&0x0F)
 #define		APIC_LVR	0x30
+#define			APIC_LVR_MASK		0xFF00FF
 #define			GET_APIC_VERSION(x)	((x)&0xFF)
-#define			GET_APIC_MAXLVT(x)	(((x)>>16)&0x0F)
+#define			GET_APIC_MAXLVT(x)	(((x)>>16)&0xFF)
 #define			APIC_INTEGRATED(x)	((x)&0xF0)
 #define		APIC_TASKPRI	0x80
 #define			APIC_TPRI_MASK		0xFF

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)