vserver 1.9.5.x5
[linux-2.6.git] / include / asm-i386 / desc.h
index 3077baf..fb8cdcf 100644 (file)
@@ -126,6 +126,15 @@ static inline void load_LDT(mm_context_t *pc)
        put_cpu();
 }
 
+static inline unsigned long get_desc_base(unsigned long *desc)
+{
+       unsigned long base;
+       base = ((desc[0] >> 16)  & 0x0000ffff) |
+               ((desc[1] << 16) & 0x00ff0000) |
+               (desc[1] & 0xff000000);
+       return base;
+}
+
 #endif /* !__ASSEMBLY__ */
 
 #endif