File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,9 @@ static void fix_processor_context(void)
174
174
write_gdt_entry (desc , GDT_ENTRY_TSS , & tss , DESC_TSS );
175
175
176
176
syscall_init (); /* This sets MSR_*STAR and related */
177
+ #else
178
+ if (boot_cpu_has (X86_FEATURE_SEP ))
179
+ enable_sep_cpu ();
177
180
#endif
178
181
load_TR_desc (); /* This does ltr */
179
182
load_mm_ldt (current -> active_mm ); /* This does lldt */
@@ -237,12 +240,6 @@ static void notrace __restore_processor_state(struct saved_context *ctxt)
237
240
loadsegment (fs , ctxt -> fs );
238
241
loadsegment (gs , ctxt -> gs );
239
242
loadsegment (ss , ctxt -> ss );
240
-
241
- /*
242
- * sysenter MSRs
243
- */
244
- if (boot_cpu_has (X86_FEATURE_SEP ))
245
- enable_sep_cpu ();
246
243
#else
247
244
/* CONFIG_X86_64 */
248
245
asm volatile ("movw %0, %%ds" :: "r" (ctxt -> ds ));
You can’t perform that action at this time.
0 commit comments