Skip to contentSkip to conversation

i386: allow disabling X86_FEATURE_SEP at boot

PATCH Chuck Ebbert 1 participant 1 message Jan 28, 2006

lore
Share & tools
lore
#0 lore raw

In-Reply-To: <[email protected]>

Quoted 7 lines · Andrew Morton
Quoted 4 lines · Chuck Ebbert

Allow the x86 "sep" feature to be disabled at bootup. This forces use of the int80 vsyscall.

Why is there a need to do this?

Mainly for testing or benchmarking the int80 vsyscall code.

Quoted 10 lines

arch/i386/kernel/cpu/common.c EXPORT_PER_CPU_SYMBOL(cpu_16bit_stack); · line 31

Quoted 8 lines
arch/i386/kernel/cpu/common.c +1 -0
@@ -27,6 +27,7 @@ EXPORT_PER_CPU_SYMBOL(cpu_16bit_stack);
 static int cachesize_override __devinitdata = -1;
 static int disable_x86_fxsr __devinitdata = 0;
 static int disable_x86_serial_nr __devinitdata = 1;
+static int disable_x86_sep __devinitdata = 0;
 

hm, I guess lots of things in there should be __cpuinit/__cpuinitdata.

I'll try to do that.

Quoted 2 lines

__devinit is a superset of that, but we're being a little wasteful in the case of CONFIG_HOTPLUG&&!CONFIG_HOTPLUG_CPU.

Signature · 1 line
Chuck