diff options
Diffstat (limited to 'include')
-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) (info)->seg_not_present == 1 && \ (info)->useable == 0 ) +static inline void write_ldt_entry(void *ldt, int entry, __u32 entry_a, __u32 entry_b) +{ + __u32 *lp = (__u32 *)((char *)ldt + entry*8); + *lp = entry_a; + *(lp+1) = entry_b; +} + #if TLS_SIZE != 24 # error update this code. #endif |