patch-2.4.23 linux-2.4.23/include/asm-x86_64/desc.h

Next file: linux-2.4.23/include/asm-x86_64/elf.h
Previous file: linux-2.4.23/include/asm-x86_64/cpufeature.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/include/asm-x86_64/desc.h linux-2.4.23/include/asm-x86_64/desc.h
@@ -121,7 +121,7 @@
 	dst->base1 = PTR_MIDDLE(ptr) & 0xFF; 
 	dst->type = type;
 	dst->p = 1; 
-	dst->limit1 = 0xF;
+	dst->limit1 = (size >> 16) & 0xF;
 	dst->base2 = (PTR_MIDDLE(ptr) >> 8) & 0xFF; 
 	dst->base3 = PTR_HIGH(ptr); 
 }

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