Skip to content

Commit

Permalink
Add fake cpuid for ARM
Browse files Browse the repository at this point in the history
TODO: proper implementation using procinfo
  • Loading branch information
ihnorton committed Sep 6, 2014
1 parent 93709b0 commit 6e772fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,10 @@ DLLEXPORT void jl_cpuid(int32_t CPUInfo[4], int32_t InfoType)
#if defined _MSC_VER
__cpuid(CPUInfo, InfoType);
#elif defined(__arm__)
printf("jl_cpuid not implemented on arm\n");
CPUInfo[0] = 0x41; // ARMv7
CPUInfo[1] = 0; // godspeed
CPUInfo[2] = 0; // to anyone
CPUInfo[3] = 0; // using <v7
#else
__asm__ __volatile__ (
#if defined(__i386__) && defined(__PIC__)
Expand Down

0 comments on commit 6e772fd

Please sign in to comment.