[PATCH] i386: Fix pack_descriptor()
[deliverable/linux.git] / include / asm-i386 / desc.h
index 5db9e96e8dc1607c9a3164c878185673992ee3b5..5874ef119ffdc0cf42886585c2c8aed229cfb91e 100644 (file)
@@ -46,7 +46,7 @@ static inline void pack_descriptor(__u32 *a, __u32 *b,
 {
        *a = ((base & 0xffff) << 16) | (limit & 0xffff);
        *b = (base & 0xff000000) | ((base & 0xff0000) >> 16) |
-            ((type & 0xff) << 8) | ((flags & 0xf) << 12);
+               (limit & 0x000f0000) | ((type & 0xff) << 8) | ((flags & 0xf) << 20);
 }
 
 static inline void pack_gate(__u32 *a, __u32 *b,
This page took 0.029842 seconds and 5 git commands to generate.