Intel CPUID2 (data in ecx after cpuid) patch

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Thu Dec 7 17:21:12 PST 2006


On Thu, Dec 07, 2006 at 02:35:43PM +0000, Thomas E. Spanjaard wrote:
> Index: machine/pc32/i386/est.c
> ===================================================================
> RCS file: /home/dcvs/src/sys/machine/pc32/i386/est.c,v
> retrieving revision 1.2
> diff -u -r1.2 est.c
> --- machine/pc32/i386/est.c	30 Jun 2006 07:34:59 -0000	1.2
> +++ machine/pc32/i386/est.c	7 Dec 2006 14:18:01 -0000
> @@ -578,6 +578,7 @@
>  	int			err;
>  	size_t			i;
>  
> +/* XXX TGEN this is dead code now, retained for reference */
>  #ifndef CPUID2_EST
>  	int			regs[4];

You can rip this `#ifndef CPUID2_EST' part completely, because CPU
feature bits won't change after the machine booted.  The code was
only there because I didn't want to mess with identcpu.c :)





More information about the Submit mailing list