Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
797f93be
Commit
797f93be
authored
Nov 27, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Avoid using inline assembly in have_x86cpuid().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b7f3e6ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
20 deletions
+15
-20
minidump.c
dlls/dbghelp/minidump.c
+15
-20
No files found.
dlls/dbghelp/minidump.c
View file @
797f93be
...
...
@@ -558,34 +558,29 @@ __ASM_GLOBAL_FUNC( do_x86cpuid,
"popl %ebx
\n\t
"
"popl %esi
\n\t
"
"ret"
)
extern
int
have_x86cpuid
(
void
);
__ASM_GLOBAL_FUNC
(
have_x86cpuid
,
"pushfl
\n\t
"
"pushfl
\n\t
"
"movl (%esp),%ecx
\n\t
"
"xorl $0x00200000,(%esp)
\n\t
"
"popfl
\n\t
"
"pushfl
\n\t
"
"popl %eax
\n\t
"
"popfl
\n\t
"
"xorl %ecx,%eax
\n\t
"
"andl $0x00200000,%eax
\n\t
"
"ret"
)
#else
static
void
do_x86cpuid
(
unsigned
int
ax
,
unsigned
int
*
p
)
{
}
#endif
/* From xf86info havecpuid.c 1.11 */
static
inline
int
have_x86cpuid
(
void
)
static
int
have_x86cpuid
(
void
)
{
#if defined(__GNUC__) && defined(__i386__)
unsigned
int
f1
,
f2
;
__asm__
(
"pushfl
\n\t
"
"pushfl
\n\t
"
"popl %0
\n\t
"
"movl %0,%1
\n\t
"
"xorl %2,%0
\n\t
"
"pushl %0
\n\t
"
"popfl
\n\t
"
"pushfl
\n\t
"
"popl %0
\n\t
"
"popfl"
:
"=&r"
(
f1
),
"=&r"
(
f2
)
:
"ir"
(
0x00200000
));
return
((
f1
^
f2
)
&
0x00200000
)
!=
0
;
#else
return
0
;
#endif
}
#endif
/******************************************************************
* dump_system_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