linprocfs.c (186563) | linprocfs.c (187594) |
---|---|
1/*- 2 * Copyright (c) 2000 Dag-Erling Co��dan Sm��rgrav 3 * Copyright (c) 1999 Pierre Beyssac 4 * Copyright (c) 1993 Jan-Simon Pendry 5 * Copyright (c) 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 28 unchanged lines hidden (view full) --- 37 * SUCH DAMAGE. 38 * 39 * @(#)procfs_status.c 8.4 (Berkeley) 6/15/94 40 */ 41 42#include "opt_compat.h" 43 44#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Dag-Erling Co��dan Sm��rgrav 3 * Copyright (c) 1999 Pierre Beyssac 4 * Copyright (c) 1993 Jan-Simon Pendry 5 * Copyright (c) 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 28 unchanged lines hidden (view full) --- 37 * SUCH DAMAGE. 38 * 39 * @(#)procfs_status.c 8.4 (Berkeley) 6/15/94 40 */ 41 42#include "opt_compat.h" 43 44#include <sys/cdefs.h> |
45__FBSDID("$FreeBSD: head/sys/compat/linprocfs/linprocfs.c 186563 2008-12-29 12:45:11Z kib $"); | 45__FBSDID("$FreeBSD: head/sys/compat/linprocfs/linprocfs.c 187594 2009-01-22 17:06:33Z jkim $"); |
46 47#include <sys/param.h> 48#include <sys/queue.h> 49#include <sys/blist.h> 50#include <sys/conf.h> 51#include <sys/exec.h> 52#include <sys/fcntl.h> 53#include <sys/filedesc.h> --- 217 unchanged lines hidden (view full) --- 271 "model name\t: %s\n" 272 "stepping\t: %d\n", 273 i, cpu_vendor, class, cpu, model, cpu_id & 0xf); 274 /* XXX per-cpu vendor / class / model / id? */ 275 } 276 277 sbuf_cat(sb, "flags\t\t:"); 278 | 46 47#include <sys/param.h> 48#include <sys/queue.h> 49#include <sys/blist.h> 50#include <sys/conf.h> 51#include <sys/exec.h> 52#include <sys/fcntl.h> 53#include <sys/filedesc.h> --- 217 unchanged lines hidden (view full) --- 271 "model name\t: %s\n" 272 "stepping\t: %d\n", 273 i, cpu_vendor, class, cpu, model, cpu_id & 0xf); 274 /* XXX per-cpu vendor / class / model / id? */ 275 } 276 277 sbuf_cat(sb, "flags\t\t:"); 278 |
279 if (!strcmp(cpu_vendor, "AuthenticAMD") && (class < 6)) { 280 flags[16] = "fcmov"; 281 } else if (!strcmp(cpu_vendor, "CyrixInstead")) { | 279#ifdef __i386__ 280 switch (cpu_vendor_id) { 281 case CPU_VENDOR_AMD: 282 if (class < 6) 283 flags[16] = "fcmov"; 284 break; 285 case CPU_VENDOR_CYRIX: |
282 flags[24] = "cxmmx"; | 286 flags[24] = "cxmmx"; |
287 break; |
|
283 } | 288 } |
289#endif |
|
284 285 for (i = 0; i < 32; i++) 286 if (cpu_feature & (1 << i)) 287 sbuf_printf(sb, " %s", flags[i]); 288 sbuf_cat(sb, "\n"); 289 if (class >= 5) { 290 fqmhz = (tsc_freq + 4999) / 1000000; 291 fqkhz = ((tsc_freq + 4999) / 10000) % 100; --- 989 unchanged lines hidden --- | 290 291 for (i = 0; i < 32; i++) 292 if (cpu_feature & (1 << i)) 293 sbuf_printf(sb, " %s", flags[i]); 294 sbuf_cat(sb, "\n"); 295 if (class >= 5) { 296 fqmhz = (tsc_freq + 4999) / 1000000; 297 fqkhz = ((tsc_freq + 4999) / 10000) % 100; --- 989 unchanged lines hidden --- |