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
48554a26
Commit
48554a26
authored
Jan 25, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Support cpuid on 64-bit.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
85630593
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
13 deletions
+36
-13
builtin.c
dlls/wbemprox/builtin.c
+36
-13
No files found.
dlls/wbemprox/builtin.c
View file @
48554a26
...
...
@@ -2804,21 +2804,44 @@ done:
return
status
;
}
static
inline
void
do_cpuid
(
unsigned
int
ax
,
unsigned
int
*
p
)
{
#ifdef __i386__
#ifdef _MSC_VER
__cpuid
(
p
,
ax
);
extern
void
do_cpuid
(
unsigned
int
ax
,
unsigned
int
*
p
);
#if defined(_MSC_VER)
void
do_cpuid
(
unsigned
int
ax
,
unsigned
int
*
p
)
{
__cpuid
(
p
,
ax
);
}
#elif defined(__i386__)
__ASM_GLOBAL_FUNC
(
do_cpuid
,
"pushl %esi
\n\t
"
"pushl %ebx
\n\t
"
"movl 12(%esp),%eax
\n\t
"
"movl 16(%esp),%esi
\n\t
"
"cpuid
\n\t
"
"movl %eax,(%esi)
\n\t
"
"movl %ebx,4(%esi)
\n\t
"
"movl %ecx,8(%esi)
\n\t
"
"movl %edx,12(%esi)
\n\t
"
"popl %ebx
\n\t
"
"popl %esi
\n\t
"
"ret"
)
#elif defined(__x86_64__)
__ASM_GLOBAL_FUNC
(
do_cpuid
,
"pushq %rbx
\n\t
"
"movl %edi,%eax
\n\t
"
"cpuid
\n\t
"
"movl %eax,(%rsi)
\n\t
"
"movl %ebx,4(%rsi)
\n\t
"
"movl %ecx,8(%rsi)
\n\t
"
"movl %edx,12(%rsi)
\n\t
"
"popq %rbx
\n\t
"
"ret"
)
#else
__asm__
(
"pushl %%ebx
\n\t
"
"cpuid
\n\t
"
"movl %%ebx, %%esi
\n\t
"
"popl %%ebx"
:
"=a"
(
p
[
0
]),
"=S"
(
p
[
1
]),
"=c"
(
p
[
2
]),
"=d"
(
p
[
3
])
:
"0"
(
ax
));
#endif
#endif
void
do_cpuid
(
unsigned
int
ax
,
unsigned
int
*
p
)
{
FIXME
(
"
\n
"
);
}
#endif
static
const
WCHAR
*
get_osarchitecture
(
void
)
{
SYSTEM_INFO
info
;
...
...
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