I'm trying to port this function:
Code: Select all
static void __cpuid(int dst[4], int ax) {
asm volatile("cpuid"
: "=a" (dst[0]), "=b" (dst[1]), "=c" (dst[2]), "=d" (dst[3])
: "0" (ax));
}
#pragma intrinsic (__cpuid)
Code: Select all
#include <c_asm.h>
static void dumbtest() {
asm("cpuid;" );
}
#pragma intrinsic (__cpuid)
Code: Select all
asm("cpuid
........^
%CC-E-ASMNOTAVAIL, In-line assembly code directive asm is not available on this platform.
Any suggestions on how I can port the __cpuid() function to OpenVMS x86? Or maybe I should just hardcode the result as a work around for now... (only half joking)