For 586 based National Semiconductor CPUs, use amd_cpu_cacheinfo to

print cache information.

My AMD Geode GX2 500/1W reports good values:

cpu0 at mainbus0: (uniprocessor)
cpu0: National Semiconductor Geode (586-class), 365.26 MHz, id 0x552
cpu0: features 80a13d<FPU,DE,PSE,TSC,MSR,CX8>
cpu0: features 80a13d<PGE,CMOV,MMX>
cpu0: "Geode(TM) Integrated Processor by National Semi"
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
cpu0: ITLB 8 4 KB entries fully associative
cpu0: DTLB 8 4 KB entries fully associative
This commit is contained in:
xtraeme 2007-06-28 21:02:40 +00:00
parent 69219b1efe
commit 5cd016ef40

View File

@ -1,4 +1,4 @@
/* $NetBSD: identcpu.c,v 1.68 2007/06/27 23:28:41 xtraeme Exp $ */
/* $NetBSD: identcpu.c,v 1.69 2007/06/28 21:02:40 xtraeme Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.68 2007/06/27 23:28:41 xtraeme Exp $");
__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.69 2007/06/28 21:02:40 xtraeme Exp $");
#include "opt_cputype.h"
#include "opt_enhanced_speedstep.h"
@ -419,7 +419,7 @@ const struct cpu_cpuid_nameclass i386_cpuid_cpus[] = {
},
cyrix6x86_cpu_setup,
NULL,
NULL,
amd_cpu_cacheinfo,
},
/* Family 6, not yet available from NSC */
{