Re: svn commit: r317884 - head/sys/compat/linprocfs

2017-05-07 Thread Ngie Cooper
> On May 6, 2017, at 11:43, Mahdi Mokhtari wrote: > > Also I think it worths saying, I've tested this running on a X86. > It was not panic'd and printed data as expected. > So you mean it's possible to panic on "some" cases because of CPUID support? You'll get a hardware

Re: svn commit: r317884 - head/sys/compat/linprocfs

2017-05-06 Thread Mahdi Mokhtari
Also I think it worths saying, I've tested this running on a X86. It was not panic'd and printed data as expected. So you mean it's possible to panic on "some" cases because of CPUID support? -- Best regards, MMokhi. ___ svn-src-all@freebsd.org mailing

Re: svn commit: r317884 - head/sys/compat/linprocfs

2017-05-06 Thread Mahdi Mokhtari
> Executing CPUID instruction on i386 without checking for CPUID support > panics the kernel. Thanks for hint. you mean I should first check if this platform supports 0x8006 CPUID command or not? -- Best regards, MMokhi. ___

Re: svn commit: r317884 - head/sys/compat/linprocfs

2017-05-06 Thread Konstantin Belousov
On Sat, May 06, 2017 at 05:37:01PM +, Mahdi Mokhtari wrote: > + do_cpuid(0x8006, cache_size); Executing CPUID instruction on i386 without checking for CPUID support panics the kernel. Also, it is worth ensuring that the requested leaf is supported, otherwise nonsensical data would be

svn commit: r317884 - head/sys/compat/linprocfs

2017-05-06 Thread Mahdi Mokhtari
Author: mmokhi (ports committer) Date: Sat May 6 17:37:01 2017 New Revision: 317884 URL: https://svnweb.freebsd.org/changeset/base/317884 Log: Fix linprocfs_docpuinfo() output regarding to what newer Linux apps expect Reviewed by: trasz Approved by: trasz MFC after:2 weeks