aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-02-09 21:09:01 +0100
committerH. Peter Anvin <hpa@zytor.com>2009-02-25 20:58:39 -0800
commitab51f7bd138f306075b03f8cd3dbb0cb6448bfb3 (patch)
tree23b8a6a4f66f6f0ac384de9ad6bd72ed6a53ee79 /com32/include
parent830ead8ece881c1fc525d031408f0f6aa63ab95e (diff)
downloadsyslinux.git-ab51f7bd138f306075b03f8cd3dbb0cb6448bfb3.tar.gz
syslinux.git-ab51f7bd138f306075b03f8cd3dbb0cb6448bfb3.tar.xz
syslinux.git-ab51f7bd138f306075b03f8cd3dbb0cb6448bfb3.zip
hdt: Updating cpuid code to match upstream code
Diffstat (limited to 'com32/include')
-rw-r--r--com32/include/cpuid.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/com32/include/cpuid.h b/com32/include/cpuid.h
index 050cfedb..c24c7985 100644
--- a/com32/include/cpuid.h
+++ b/com32/include/cpuid.h
@@ -133,6 +133,9 @@ static inline __purefunc bool test_bit(int nr, const uint32_t *addr)
return ((1UL << (nr & 31)) & (addr[nr >> 5])) != 0;
}
+#define test_cpu_cap(c, bit) \
+ test_bit(bit, (unsigned long *)((c)->x86_capability))
+
#define cpu_has(c, bit) test_bit(bit, (c)->x86_capability)
/*
@@ -168,6 +171,8 @@ struct cpuinfo_x86 {
unsigned char x86_max_cores; /* cpuid returned max cores value */
unsigned char booted_cores; /* number of cores as seen by OS */
unsigned char apicid;
+ unsigned char x86_clflush_size;
+
} __attribute__((__packed__));
#endif