Re: [PATCH] Pentium Pro - sysenter - doublefault

From: Richard Curnow
Date: Tue Aug 26 2003 - 07:31:46 EST


* Jamie Lokier <jamie@xxxxxxxxxxxxx> [2003-08-26]:
> Could you please run this very simple userspace program for me, and
> report the result?
>
> int main() { __asm__ ("sysenter"); return 0; }
>
> I expect it to die with SIGILL on Pentium and earlier chips, and
> SIGSEGV on "good" PPro and later chips running kernels which don't
> enable the sysenter instruction.

OK, since I get something different to the other reports I saw:

1:20PM-malvern-0-534-% ./sysenter
1:20PM-malvern-STKFLT-535-% echo $?
144

/proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 5
model name : Pentium II (Deschutes)
stepping : 0
cpu MHz : 333.495
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr
bogomips : 657.40

uname -a:
Linux malvern 2.6.0-test2-mm5 #2 Fri Aug 8 12:06:50 BST 2003 i686 unknown

HTH

--
Richard \\\ SuperH Core+Debug Architect /// .. At home ..
P. /// richard.curnow@xxxxxxxxxx /// rc@xxxxxxxxxx
Curnow \\\ http://www.superh.com/ /// www.rc0.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/