Tech Support > Microsoft Windows > Drivers > need help for intrinsic function
need help for intrinsic function
Posted by manojkumar_net@rediffmail.com on March 23rd, 2005


Hi,
I need to port win32 app. on AMD64 for which I need
to remove inline assembly(not supported on 64-bit) using
intrinsic function. Inline assembly involves set of "mov" instructions
to detect the processor type using CPUID instruction. Here is the
inline assembly

mov eax, 0x80000000
CPUID
mov value, eax.

i am using intrinsic function void __cpuid(
int* CPUInfo,
int InfoType
);

whihc requires second param to be infotype. So, Should I give
0x80000000 as the value of Infotype???

Can anyone tell me what should be the equivalent code for above
mentioned inline assembly using __cpuid intrinsic.

thanks
xyz

Posted by Don Burn on March 23rd, 2005


The real question is what do you think you need in the way of data from that
instruction in a driver? Will ExIsProcessorFeaturePresent do enough for
you?


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

<manojkumar_net@rediffmail.com> wrote in message
news:1111587529.576738.196170@f14g2000cwb.googlegr oups.com...



Similar Posts