diff options
Diffstat (limited to 'include/asm-x86/desc_64.h')
-rw-r--r-- | include/asm-x86/desc_64.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/asm-x86/desc_64.h b/include/asm-x86/desc_64.h index c49f928ed8b6..ba7fb87d10f3 100644 --- a/include/asm-x86/desc_64.h +++ b/include/asm-x86/desc_64.h | |||
@@ -147,23 +147,6 @@ static inline void set_ldt_desc(unsigned cpu, void *addr, int size) | |||
147 | (unsigned long)addr, DESC_LDT, size * 8 - 1); | 147 | (unsigned long)addr, DESC_LDT, size * 8 - 1); |
148 | } | 148 | } |
149 | 149 | ||
150 | #define LDT_entry_a(info) \ | ||
151 | ((((info)->base_addr & 0x0000ffff) << 16) | ((info)->limit & 0x0ffff)) | ||
152 | /* Don't allow setting of the lm bit. It is useless anyways because | ||
153 | 64bit system calls require __USER_CS. */ | ||
154 | #define LDT_entry_b(info) \ | ||
155 | (((info)->base_addr & 0xff000000) | \ | ||
156 | (((info)->base_addr & 0x00ff0000) >> 16) | \ | ||
157 | ((info)->limit & 0xf0000) | \ | ||
158 | (((info)->read_exec_only ^ 1) << 9) | \ | ||
159 | ((info)->contents << 10) | \ | ||
160 | (((info)->seg_not_present ^ 1) << 15) | \ | ||
161 | ((info)->seg_32bit << 22) | \ | ||
162 | ((info)->limit_in_pages << 23) | \ | ||
163 | ((info)->useable << 20) | \ | ||
164 | /* ((info)->lm << 21) | */ \ | ||
165 | 0x7000) | ||
166 | |||
167 | #define LDT_empty(info) (\ | 150 | #define LDT_empty(info) (\ |
168 | (info)->base_addr == 0 && \ | 151 | (info)->base_addr == 0 && \ |
169 | (info)->limit == 0 && \ | 152 | (info)->limit == 0 && \ |