FreeBSD Bugzilla – Attachment 10893 Details for
Bug 21672
[i386] AMD Duron Rev. A0 reports incorrect L2 cache size
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 879 bytes, created by
john
on 2000-10-01 15:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
john
Created:
2000-10-01 15:20:01 UTC
Size:
879 bytes
patch
obsolete
>--- sys/i386/i386/identcpu.c.orig Sat Sep 30 15:07:33 2000 >+++ sys/i386/i386/identcpu.c Mon Oct 2 01:07:22 2000 >@@ -918,9 +918,16 @@ > printf(", %d bytes/line", regs[3] & 0xff); > printf(", %d lines/tag", (regs[3] >> 8) & 0xff); > print_AMD_assoc((regs[3] >> 16) & 0xff); >- if (amd_maxregs >= 0x80000006) { /* K6-III only */ >+ if (amd_maxregs >= 0x80000006) { /* K6-III, K7 or later */ > do_cpuid(0x80000006, regs); >- printf("L2 internal cache: %d kbytes", regs[2] >> 16); >+ /* >+ * Duron Rev. A0 incorrectly reports L2 cache size as 1K when it's 64K. >+ */ >+ if ((cpu_id & 0xFF0) == 0x630) { >+ printf("L2 internal cache: 64 kbytes"); >+ } else { >+ printf("L2 internal cache: %d kbytes", regs[2] >> 16); >+ } > printf(", %d bytes/line", regs[2] & 0xff); > printf(", %d lines/tag", (regs[2] >> 8) & 0x0f); > print_AMD_assoc((regs[2] >> 12) & 0x0f);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21672
: 10893