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()
...
@@ -192,27 +192,32 @@ bool HaveCpuId()
}
}
return
true
;
return
true
;
#else
#else
typedef
void
(
*
SigHandler
)(
int
);
word32
eax
,
ebx
;
SigHandler
oldHandler
=
signal
(
SIGILL
,
SigIllHandler
);
if
(
oldHandler
==
SIG_ERR
)
return
false
;
bool
result
=
true
;
if
(
setjmp
(
s_env
))
result
=
false
;
else
__asm__
__volatile
__asm__
__volatile
(
(
// save ebx in case -fPIC is being used
/* Put EFLAGS in eax and ebx */
"push %%ebx; mov $0, %%eax; cpuid; pop %%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
);
if
(
eax
==
ebx
)
return
result
;
return
false
;
return
true
;
#endif
#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