Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
6b0cd392
Commit
6b0cd392
authored
Oct 12, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3331 from tSed:opencv-2.4.x/fix-x86-PIC-compilation
parents
b11b08b4
ea50be05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
system.cpp
modules/core/src/system.cpp
+4
-1
No files found.
modules/core/src/system.cpp
View file @
6b0cd392
...
...
@@ -267,14 +267,17 @@ struct HWFeatures
:
"cc"
);
#else
// We need to preserve ebx since we are compiling PIC code.
// This means we cannot use "=b" for the 2nd output register.
asm
volatile
(
"pushl %%ebx
\n\t
"
"movl $7,%%eax
\n\t
"
"movl $0,%%ecx
\n\t
"
"cpuid
\n\t
"
"movl %%ebx,%1
\n\t
"
"popl %%ebx
\n\t
"
:
"=a"
(
cpuid_data
[
0
]),
"=
b
"
(
cpuid_data
[
1
]),
"=c"
(
cpuid_data
[
2
]),
"=d"
(
cpuid_data
[
3
])
:
"=a"
(
cpuid_data
[
0
]),
"=
r
"
(
cpuid_data
[
1
]),
"=c"
(
cpuid_data
[
2
]),
"=d"
(
cpuid_data
[
3
])
:
:
"cc"
);
...
...
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