patch-2.4.27 linux-2.4.27/include/asm-x86_64/desc.h
Next file: linux-2.4.27/include/asm-x86_64/i387.h
Previous file: linux-2.4.27/include/asm-x86_64/bluesmoke.h
Back to the patch index
Back to the overall index
-  Lines: 17
-  Date:
2004-08-07 16:26:06.239411905 -0700
-  Orig file: 
linux-2.4.26/include/asm-x86_64/desc.h
-  Orig date: 
2004-02-18 05:36:32.000000000 -0800
diff -urN linux-2.4.26/include/asm-x86_64/desc.h linux-2.4.27/include/asm-x86_64/desc.h
@@ -121,7 +121,6 @@
 	dst->base1 = PTR_MIDDLE(ptr) & 0xFF; 
 	dst->type = type;
 	dst->p = 1; 
-	dst->g = 1;
 	dst->limit1 = (size >> 16) & 0xF;
 	dst->base2 = (PTR_MIDDLE(ptr) >> 8) & 0xFF; 
 	dst->base3 = PTR_HIGH(ptr); 
@@ -134,7 +133,7 @@
 
 static inline void set_ldt_desc(unsigned n, void *addr, int size)
 { 
-	set_tssldt_descriptor((void *)&gdt_table + __CPU_DESC_INDEX(n,ldt), (unsigned long)addr, DESC_LDT, size); 
+	set_tssldt_descriptor((void *)&gdt_table + __CPU_DESC_INDEX(n,ldt), (unsigned long)addr, DESC_LDT, size * 8); 
 }	
 
 /*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)