File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -350,13 +350,6 @@ static inline void __loadsegment_fs(unsigned short value)
350
350
#define savesegment (seg , value ) \
351
351
asm("mov %%" #seg ",%0":"=r" (value) : : "memory")
352
352
353
- /*
354
- * x86-32 user GS accessors. This is ugly and could do with some cleaning up.
355
- */
356
- #ifdef CONFIG_X86_32
357
- # define load_gs_index (v ) loadsegment(gs, (v))
358
- #endif /* X86_32 */
359
-
360
353
#endif /* !__ASSEMBLY__ */
361
354
#endif /* __KERNEL__ */
362
355
Original file line number Diff line number Diff line change @@ -184,14 +184,15 @@ static inline void wbinvd(void)
184
184
native_wbinvd ();
185
185
}
186
186
187
- #ifdef CONFIG_X86_64
188
187
189
188
static inline void load_gs_index (unsigned int selector )
190
189
{
190
+ #ifdef CONFIG_X86_64
191
191
native_load_gs_index (selector );
192
- }
193
-
192
+ #else
193
+ loadsegment ( gs , selector );
194
194
#endif
195
+ }
195
196
196
197
#endif /* CONFIG_PARAVIRT_XXL */
197
198
You can’t perform that action at this time.
0 commit comments