diff options
Diffstat (limited to 'include/asm-i386')
-rw-r--r-- | include/asm-i386/desc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-i386/desc.h b/include/asm-i386/desc.h index ccb11c032839..6df1a53c190e 100644 --- a/include/asm-i386/desc.h +++ b/include/asm-i386/desc.h | |||
@@ -96,6 +96,13 @@ static inline void set_ldt_desc(unsigned int cpu, void *addr, unsigned int size) | |||
96 | (info)->seg_not_present == 1 && \ | 96 | (info)->seg_not_present == 1 && \ |
97 | (info)->useable == 0 ) | 97 | (info)->useable == 0 ) |
98 | 98 | ||
99 | static inline void write_ldt_entry(void *ldt, int entry, __u32 entry_a, __u32 entry_b) | ||
100 | { | ||
101 | __u32 *lp = (__u32 *)((char *)ldt + entry*8); | ||
102 | *lp = entry_a; | ||
103 | *(lp+1) = entry_b; | ||
104 | } | ||
105 | |||
99 | #if TLS_SIZE != 24 | 106 | #if TLS_SIZE != 24 |
100 | # error update this code. | 107 | # error update this code. |
101 | #endif | 108 | #endif |