Updated OS/2 build, yay!
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401446
This commit is contained in:
parent
e1f2aca17a
commit
46f459a736
32 changed files with 727 additions and 675 deletions
|
@ -96,7 +96,7 @@ CPUid by definition. But it's nice to be able to prove it. :) */
|
|||
:
|
||||
: "%rax", "%rcx"
|
||||
);
|
||||
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_X86_))
|
||||
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
||||
__asm {
|
||||
pushfd ; Get original EFLAGS
|
||||
pop eax
|
||||
|
@ -165,7 +165,7 @@ static __inline__ int CPU_getCPUIDFeatures(void)
|
|||
:
|
||||
: "%eax", "%ecx", "%edx", "%edi"
|
||||
);
|
||||
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_X86_))
|
||||
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
||||
__asm {
|
||||
xor eax, eax ; Set up for CPUID instruction
|
||||
cpuid ; Get and save vendor ID
|
||||
|
@ -217,7 +217,7 @@ static __inline__ int CPU_getCPUIDFeaturesExt(void)
|
|||
:
|
||||
: "%eax", "%ecx", "%edx", "%edi"
|
||||
);
|
||||
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_X86_))
|
||||
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
||||
__asm {
|
||||
mov eax,80000000h ; Query for extended functions
|
||||
cpuid ; Get extended function limit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue