PERFORCE change 30448 for review
Peter Wemm
peter at FreeBSD.org
Sat May 3 00:35:57 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=30448
Change 30448 by peter at peter_daintree on 2003/05/03 00:35:21
Add a cheap/nasty option ("NDA") to try and avoid accidently
cut/pasting something I shouldn't.
Affected files ...
.. //depot/projects/hammer/sys/amd64/amd64/identcpu.c#7 edit
.. //depot/projects/hammer/sys/amd64/conf/GENERIC#5 edit
.. //depot/projects/hammer/sys/conf/options.amd64#7 edit
Differences ...
==== //depot/projects/hammer/sys/amd64/amd64/identcpu.c#7 (text+ko) ====
@@ -98,7 +98,6 @@
char *brand;
cpu_class = amd64_cpus[cpu].cpu_class;
- printf("CPU: ");
strncpy(cpu_model, amd64_cpus[cpu].cpu_name, sizeof (cpu_model));
/* Check for extended CPUID information and a processor name. */
@@ -129,9 +128,9 @@
* (also describes ``Features'' encodings.
*/
strcpy(cpu_model, "AMD ");
- switch (cpu_id & 0xFF0) {
+ switch (cpu_id & 0xF00) {
case 0xf00:
- strcat(cpu_model, "Hammer");
+ strcat(cpu_model, "AMD64 Processor");
break;
default:
strcat(cpu_model, "Unknown");
@@ -149,6 +148,10 @@
if (*brand != '\0')
strcpy(cpu_model, brand);
+#ifdef NDA
+ printf("CPU: %s AMD64 Class Processor\n", cpu_vendor);
+#else
+ printf("CPU: ");
printf("%s (", cpu_model);
switch(cpu_class) {
case CPUCLASS_K8:
@@ -162,6 +165,7 @@
printf("Unknown"); /* will panic below... */
}
printf("-class CPU)\n");
+#endif
if(*cpu_vendor)
printf(" Origin = \"%s\"",cpu_vendor);
if(cpu_id)
==== //depot/projects/hammer/sys/amd64/conf/GENERIC#5 (text+ko) ====
@@ -22,6 +22,7 @@
cpu HAMMER
ident GENERIC
maxusers 0
+options NDA #Avoid accidental cut/paste of NDA'ed stuff
makeoptions NO_MODULES=not_yet
==== //depot/projects/hammer/sys/conf/options.amd64#7 (text+ko) ====
@@ -54,6 +54,7 @@
# EOF
# -------------------------------
HAMMER opt_cpu.h
+NDA opt_cpu.h
PPC_PROBE_CHIPSET opt_ppc.h
PPC_DEBUG opt_ppc.h
PSM_HOOKRESUME opt_psm.h
More information about the p4-projects
mailing list