[patch] <machine/cputypes.h>

David O'Brien obrien at freebsd.org
Sun Sep 26 21:01:40 PDT 2004


On Mon, Sep 27, 2004 at 07:21:18AM +0530, Joseph Koshy wrote:
> Anyone have objections to the following patch?
> 
> $ diff -u cputypes.h /home/fcpi/src/sys/i386/include                  
>               /5/usr/src.cvs/sys/i386/include
> --- cputypes.h  Sat Jun  5 03:01:15 2004
> +++ /home/fcpi/src/sys/i386/include/cputypes.h  Sun Sep 26 15:35:51 2004
> @@ -60,6 +60,8 @@
>  #define        CPU_PIII        15      /* Intel Pentium III */
>  #define        CPU_P4          16      /* Intel Pentium 4 */
>  #define        CPU_GEODE1100   17      /* NS Geode SC1100 */
> +#define        CPU_K7          18      /* AMD K7 */
> +#define        CPU_K8          19      /* AMD K8 (in X86 mode) */
                                                 ^^^^^^^^^^^^^^^^
                                                 K8 is an x86 CPU,
                                                 I think you mean 32-bit
                                                 mode.

What are these values used for?  A grep finds that we set them
inconsistently and that they aren't used anywhere other than
CPU_GEODE1100 in i386/i386/vm_machdep.c.

-- 
-- David  (obrien at FreeBSD.org)


More information about the freebsd-current mailing list