"vscode:/vscode.git/clone" did not exist on "b615dcd7fd51b5b17d2fca13ab4aec2aa9d02218"
Commit a8ff237c authored by peastman's avatar peastman
Browse files

Fixed a compilation error on some OSes

parent e0b8e2aa
...@@ -96,9 +96,12 @@ static int getNumProcessors() { ...@@ -96,9 +96,12 @@ static int getNumProcessors() {
#else #else
static void cpuid(int cpuInfo[4], int infoType){ static void cpuid(int cpuInfo[4], int infoType){
__asm__ __volatile__ ( __asm__ __volatile__ (
"cpuid": "pushl %%ebx\n"
"cpuid\n"
"movl %%ebx, %1\n"
"popl %%ebx\n" :
"=a" (cpuInfo[0]), "=a" (cpuInfo[0]),
"=b" (cpuInfo[1]), "=r" (cpuInfo[1]),
"=c" (cpuInfo[2]), "=c" (cpuInfo[2]),
"=d" (cpuInfo[3]) : "=d" (cpuInfo[3]) :
"a" (infoType) "a" (infoType)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment