| 
            Last change
 on this file since 3056 was             2798, checked in by sandervl, 26 years ago           | 
        
        
          | 
             
change assembly function calling convention 
 
           | 
        
        
          | 
            File size:
            929 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | /* $Id: cpuhlp.h,v 1.2 2000-02-15 19:04:43 sandervl Exp $ */
 | 
|---|
| 2 | 
 | 
|---|
| 3 | #ifndef _CPUHLP_H_
 | 
|---|
| 4 | #define _CPUHLP_H_
 | 
|---|
| 5 | 
 | 
|---|
| 6 | #ifdef __cplusplus
 | 
|---|
| 7 | extern "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 | 
 | 
|---|
| 26 | BOOL  _cdecl SupportsCPUID();
 | 
|---|
| 27 | 
 | 
|---|
| 28 | void  _cdecl GetCPUVendorString(char *vendor);
 | 
|---|
| 29 | DWORD _cdecl GetCPUFeatures();
 | 
|---|
| 30 | DWORD _cdecl GetCPUSignature();
 | 
|---|
| 31 | 
 | 
|---|
| 32 | void  InitSystemInfo(int nrcpus);
 | 
|---|
| 33 | 
 | 
|---|
| 34 | extern DWORD CPUFeatures;
 | 
|---|
| 35 | 
 | 
|---|
| 36 | #ifdef __cplusplus
 | 
|---|
| 37 | }
 | 
|---|
| 38 | #endif
 | 
|---|
| 39 | 
 | 
|---|
| 40 | #endif /* _CPUHLP_H_ */
 | 
|---|
| 41 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.