Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
a8ff237c
"vscode:/vscode.git/clone" did not exist on "b615dcd7fd51b5b17d2fca13ab4aec2aa9d02218"
Commit
a8ff237c
authored
Aug 20, 2013
by
peastman
Browse files
Fixed a compilation error on some OSes
parent
e0b8e2aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
plugins/cpupme/src/CpuPmeKernels.cpp
plugins/cpupme/src/CpuPmeKernels.cpp
+5
-2
No files found.
plugins/cpupme/src/CpuPmeKernels.cpp
View file @
a8ff237c
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment