[PATCH] proc_cpuinfo: Add PPIN support for AMD

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Apr 14 10:37:48 GMT 2020


On Apr 10 22:35, Brian Inglis wrote:
> Newer AMD CPUs support a feature called protected processor
> identification number (PPIN). This feature can be detected via
> CPUID_Fn80000008_EBX[23].
> ---
>  winsup/cygwin/fhandler_proc.cc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
> index 605a8443f0..5c5f4bd9ef 100644
> --- a/winsup/cygwin/fhandler_proc.cc
> +++ b/winsup/cygwin/fhandler_proc.cc
> @@ -1262,6 +1262,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
>  /*	  ftcprint (features1, 14, "ibrs" ); */	    /* ind br restricted spec */
>  /*	  ftcprint (features1, 15, "stibp"); */	    /* 1 thread ind br pred */
>  /*	  ftcprint (features1, 17, "stibp_always_on"); */ /* stibp always on */
> +	  ftcprint (features1, 23, "amd_ppin");     /* protected proc id no */
>  /*	  ftcprint (features1, 24, "ssbd"); */	    /* spec store byp dis */
>  	  ftcprint (features1, 25, "virt_ssbd");    /* vir spec store byp dis */
>  /*	  ftcprint (features1, 26, "ssb_no"); */    /* ssb fixed in hardware */
> -- 
> 2.21.0

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://cygwin.com/pipermail/cygwin-patches/attachments/20200414/c699f52d/attachment.sig>


More information about the Cygwin-patches mailing list