source: trunk/include/cpuhlp.h@ 5200

Last change on this file since 5200 was 5090, checked in by sandervl, 25 years ago

Update for VAC 3.6.5

File size: 1.2 KB
Line 
1/* $Id: cpuhlp.h,v 1.5 2001-02-11 10:35:29 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 CDECL SupportsCPUID();
27
28void CDECL GetCPUVendorString(char *vendor);
29DWORD CDECL GetCPUFeatures();
30DWORD CDECL GetCPUSignature();
31void CDECL GetTSC(LONG *high, LONG *low);
32
33void InitSystemInfo(int nrcpus);
34
35extern DWORD CPUFeatures;
36
37#if (__IBMC__ >= 360) || (__IBMCPP__ >= 360)
38#define CONTROL87(a,b) __control87(a, b)
39#else
40#if (__IBMCPP__ == 300) || (__IBMC__ == 300)
41#define CONTROL87(a,b) _control87(a, b)
42#else
43#error CONTROL87 undefined
44#endif
45#endif
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif /* _CPUHLP_H_ */
52
Note: See TracBrowser for help on using the repository browser.