patch-2.1.64 linux/include/linux/head.h
Next file: linux/include/linux/miscdevice.h
Previous file: linux/include/asm-i386/system.h
Back to the patch index
Back to the overall index
-  Lines: 24
-  Date:
Fri Nov 14 18:39:55 1997
-  Orig file: 
v2.1.63/linux/include/linux/head.h
-  Orig date: 
Sun Jan 22 04:38:45 1995
diff -u --recursive --new-file v2.1.63/linux/include/linux/head.h linux/include/linux/head.h
@@ -1,11 +1,20 @@
 #ifndef _LINUX_HEAD_H
 #define _LINUX_HEAD_H
 
-typedef struct desc_struct {
+struct desc_struct {
 	unsigned long a,b;
-} desc_table[256];
+};
 
-extern desc_table idt,gdt;
+extern struct desc_struct idt_table[],gdt_table[];
+extern struct desc_struct *idt, *gdt;
+
+struct Xgt_desc_struct {
+	unsigned short size;
+	unsigned long address __attribute__((packed));
+};
+
+#define idt_descr (*(struct Xgt_desc_struct *)((char *)&idt - 2))
+#define gdt_descr (*(struct Xgt_desc_struct *)((char *)&gdt - 2))
 
 #define GDT_NUL 0
 #define GDT_CODE 1
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov