source: trunk/src/kernel32/cpuhlp.h@ 2012

Last change on this file since 2012 was 1820, checked in by sandervl, 26 years ago

GetSystemInfo supports SMP machines now

File size: 874 bytes
Line 
1/* $Id: cpuhlp.h,v 1.2 1999-11-23 20:01:18 sandervl Exp $ */
2
3#ifndef _CPUHLP_H_
4#define _CPUHLP_H_
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#define BIT(a) (1<<a)
11
12#define CPUID_FPU_PRESENT BIT(0)
13#define CPUID_VMMODE_EXTENSIONS BIT(1)
14#define CPUID_DBG_EXTENSIONS BIT(2)
15#define CPUID_PAGE_SIZE_EXTENSIONS BIT(3)
16#define CPUID_TIME_STAMP_COUNTER BIT(4)
17#define CPUID_K86_MODEL_REGS BIT(5)
18#define CPUID_MACHINE_CHECK_EXCEPTION BIT(7)
19#define CPUID_CMPXCHG8B_INSTRUCTION BIT(8)
20#define CPUID_APIC BIT(9)
21#define CPUID_MEMORY_TYPE_RANGE_REGS BIT(12)
22#define CPUID_GLOBAL_PAGING_EXTENSIONS BIT(13)
23#define CPUID_CONDITIONAL_MOVE BIT(15)
24#define CPUID_MMX BIT(23)
25
26BOOL SupportsCPUID();
27
28void GetCPUVendorString(char *vendor);
29DWORD GetCPUFeatures();
30DWORD GetCPUSignature();
31
32void InitSystemInfo(int nrcpus);
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif /* _CPUHLP_H_ */
39
Note: See TracBrowser for help on using the repository browser.