mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
38ca10bb38
Freshmeat blurb: Identifies several new CPUS. Additional MSR decoding on various CPUs. A few misidentification bugs have been fixed. Completely rewritten cachesize determination. Various new cache descriptors added. Numerous MHz estimation improvements. AMD K7 powernow register/BIOS decoding. Now decodes extended Intel feature flags, cpuid brand field, and sSpec on some models. AMD Opteron/Athlon64 support. VIA Powersaver/Longhaul support. A --bugs option to display CPU errata. No longer retries opening /dev/msr if the first open fails. Fixes a memory leak in --url. PR: 55937 Submitted by: Erik Greenwald <erik@smluc.org>
23 lines
484 B
C
23 lines
484 B
C
--- x86info.h.orig Sun Aug 24 10:59:27 2003
|
|
+++ x86info.h Sun Aug 24 11:00:47 2003
|
|
@@ -1,15 +1,10 @@
|
|
#ifndef _X86INFO_H
|
|
#define _X86INFO_H
|
|
|
|
-#ifdef linux
|
|
-#include <linux/types.h>
|
|
-typedef unsigned char u8;
|
|
-typedef unsigned short u16;
|
|
-typedef unsigned int u32;
|
|
-#else
|
|
-#include <machine/types.h>
|
|
-#define __u32 int
|
|
-#endif /* linux */
|
|
+#include <sys/types.h>
|
|
+typedef u_int8_t u8;
|
|
+typedef u_int16_t u16;
|
|
+typedef u_int32_t u32;
|
|
|
|
#define VENDOR_AMD 1
|
|
#define VENDOR_CENTAUR 2
|