Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
1ce0c957
Commit
1ce0c957
authored
Oct 20, 2012
by
James Eder
Committed by
Alexandre Julliard
Oct 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add support for cpuid on x86_64.
parent
60c60ece
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
nt.c
dlls/ntdll/nt.c
+9
-0
No files found.
dlls/ntdll/nt.c
View file @
1ce0c957
...
...
@@ -827,6 +827,13 @@ static inline void do_cpuid(unsigned int ax, unsigned int *p)
"popl %%ebx"
:
"=a"
(
p
[
0
]),
"=S"
(
p
[
1
]),
"=c"
(
p
[
2
]),
"=d"
(
p
[
3
])
:
"0"
(
ax
));
#elif defined(__x86_64__)
__asm__
(
"push %%rbx
\n\t
"
"cpuid
\n\t
"
"movq %%rbx, %%rsi
\n\t
"
"pop %%rbx"
:
"=a"
(
p
[
0
]),
"=S"
(
p
[
1
]),
"=c"
(
p
[
2
]),
"=d"
(
p
[
3
])
:
"0"
(
ax
));
#endif
}
...
...
@@ -848,6 +855,8 @@ static inline int have_cpuid(void)
:
"=&r"
(
f1
),
"=&r"
(
f2
)
:
"ir"
(
0x00200000
));
return
((
f1
^
f2
)
&
0x00200000
)
!=
0
;
#elif defined(__x86_64__)
return
1
;
#else
return
0
;
#endif
...
...
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