FreeBSD Bugzilla – Attachment 6320 Details for
Bug 14437
MFC'ed identcpu.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.82 KB, created by
kbyanc
on 1999-10-20 19:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
kbyanc
Created:
1999-10-20 19:40:00 UTC
Size:
2.82 KB
patch
obsolete
>--- identcpu.c.orig Wed Oct 20 13:43:39 1999 >+++ identcpu.c Wed Oct 20 14:27:09 1999 >@@ -79,10 +79,12 @@ > u_int cyrix_did; /* Device ID of Cyrix CPU */ > int cpu_class = CPUCLASS_386; /* least common denominator */ > char machine[] = "i386"; >-SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, machine, 0, ""); >+SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, >+ machine, 0, "Machine class"); > > static char cpu_model[128]; >-SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD, cpu_model, 0, ""); >+SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD, >+ cpu_model, 0, "Machine model"); > > static struct cpu_nameclass i386_cpus[] = { > { "Intel 80286", CPUCLASS_286 }, /* CPU_286 */ >@@ -126,7 +128,7 @@ > printcpuinfo(void) > { > >- u_int regs[4], nreg; >+ u_int regs[4], nreg = 0; > cpu_class = i386_cpus[cpu].cpu_class; > printf("CPU: "); > strncpy(cpu_model, i386_cpus[cpu].cpu_name, sizeof cpu_model); >@@ -205,11 +207,11 @@ > cpu = CPU_PII; > break; > case 0x60: >- strcat(cpu_model, "Celeron"); >+ strcat(cpu_model, "Pentium II/Celeron"); > cpu = CPU_PII; > break; > case 0x70: >- strcat(cpu_model, "Pentium III"); >+ strcat(cpu_model, "Pentium III/Xeon"); > cpu = CPU_PIII; > break; > default: >@@ -552,32 +550,32 @@ > */ > printf("\n Features=0x%b", cpu_feature, > "\020" >- "\001FPU" >- "\002VME" >+ "\001FPU" /* Integral FPU */ >+ "\002VME" /* Extended VM86 mode support */ > "\003DE" >- "\004PSE" >- "\005TSC" >- "\006MSR" >- "\007PAE" >- "\010MCE" >- "\011CX8" >- "\012APIC" >+ "\004PSE" /* 4MByte page tables */ >+ "\005TSC" /* Timestamp counter */ >+ "\006MSR" /* Machine specific registers */ >+ "\007PAE" /* Physical address extension */ >+ "\010MCE" /* Machine Check support */ >+ "\011CX8" /* CMPEXCH8 instruction */ >+ "\012APIC" /* SMP local APIC */ > "\013oldMTRR" > "\014SEP" > "\015MTRR" >- "\016PGE" >+ "\016PGE" /* PG_G (global bit) support */ > "\017MCA" >- "\020CMOV" >- "\021PAT" >- "\022PSE36" >- "\023<b18>" >+ "\020CMOV" /* CMOV instruction */ >+ "\021PAT" /* Page attributes table */ >+ "\022PSE36" /* 36 bit address space support */ >+ "\023PN" /* Processor Serial number */ > "\024<b19>" > "\025<b20>" > "\026<b21>" > "\027<b22>" >- "\030MMX" >- "\031FXSR" >- "\032<b25>" >+ "\030MMX" /* MMX instructions */ >+ "\031FXSR" /* FXSAVE/FXRSTOR */ >+ "\032XMM" /* Katami SIMD/MMX2 instructions */ > "\033<b26>" > "\034<b27>" > "\035<b28>" >@@ -663,6 +661,7 @@ > (" > .text > .p2align 2,0x90 >+ .type " __XSTRING(CNAME(bluetrap6)) ",@function > " __XSTRING(CNAME(bluetrap6)) ": > ss > movl $0xa8c1d," __XSTRING(CNAME(trap_by_rdmsr)) " >@@ -679,6 +678,7 @@ > (" > .text > .p2align 2,0x90 >+ .type " __XSTRING(CNAME(bluetrap13)) ",@function > " __XSTRING(CNAME(bluetrap13)) ": > ss > movl $0xa89c4," __XSTRING(CNAME(trap_by_rdmsr)) "
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 14437
: 6320