Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
1772776e
Commit
1772776e
authored
Apr 11, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint
parents
48098cdd
15050080
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
16 deletions
+21
-16
extra/yassl/taocrypt/src/misc.cpp
extra/yassl/taocrypt/src/misc.cpp
+21
-16
No files found.
extra/yassl/taocrypt/src/misc.cpp
View file @
1772776e
...
...
@@ -192,27 +192,32 @@ bool HaveCpuId()
}
return
true
;
#else
typedef
void
(
*
SigHandler
)(
int
);
SigHandler
oldHandler
=
signal
(
SIGILL
,
SigIllHandler
);
if
(
oldHandler
==
SIG_ERR
)
return
false
;
bool
result
=
true
;
if
(
setjmp
(
s_env
))
result
=
false
;
else
word32
eax
,
ebx
;
__asm__
__volatile
(
// save ebx in case -fPIC is being used
"push %%ebx; mov $0, %%eax; cpuid; pop %%ebx"
:
/* Put EFLAGS in eax and ebx */
"pushf;"
"pushf;"
"pop %0;"
"movl %0,%1;"
/* Flip the cpuid bit and store back in EFLAGS */
"xorl $0x200000,%0;"
"push %0;"
"popf;"
/* Read EFLAGS again */
"pushf;"
"pop %0;"
"popf"
:
"=r"
(
eax
),
"=r"
(
ebx
)
:
:
"%eax"
,
"%ecx"
,
"%edx"
:
"cc"
);
signal
(
SIGILL
,
oldHandler
);
return
result
;
if
(
eax
==
ebx
)
return
false
;
return
true
;
#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