Updates to PocketPC (WinCE) support, thanks to Dmitry Yakimov at

activekitten.com.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401155
This commit is contained in:
Ryan C. Gordon 2005-09-29 09:43:00 +00:00
parent 91121c3104
commit ba06fd388b
13 changed files with 211 additions and 41 deletions

View file

@ -101,7 +101,7 @@ CPUid by definition. But it's nice to be able to prove it. :) */
:
: "%rax", "%rcx"
);
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_X86_))
__asm {
pushfd ; Get original EFLAGS
pop eax
@ -140,7 +140,7 @@ static __inline__ int CPU_getCPUIDFeatures()
:
: "%eax", "%ecx", "%edx", "%edi"
);
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_X86_))
__asm {
xor eax, eax ; Set up for CPUID instruction
cpuid ; Get and save vendor ID
@ -175,7 +175,7 @@ static __inline__ int CPU_getCPUIDFeaturesExt()
:
: "%eax", "%ecx", "%edx", "%edi"
);
#elif defined(_MSC_VER)
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_X86_))
__asm {
mov eax,80000000h ; Query for extended functions
cpuid ; Get extended function limit