Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
nexedi
linux
Commits
11eb28e4
Commit
11eb28e4
authored
Jan 20, 2005
by
Krzysztof Helt
Committed by
David S. Miller
Jan 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Fix asm constraints in muldiv.c
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
0f087493
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
arch/sparc/kernel/muldiv.c
arch/sparc/kernel/muldiv.c
+7
-4
No files found.
arch/sparc/kernel/muldiv.c
View file @
11eb28e4
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
*
*
* Copyright (C) 1996 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 1996 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
*
* 2004-12-25 Krzysztof Helt (krzysztof.h1@wp.pl)
* - fixed registers constrains in inline assembly declarations
*/
*/
#include <linux/kernel.h>
#include <linux/kernel.h>
...
@@ -132,7 +135,7 @@ int do_user_muldiv(struct pt_regs *regs, unsigned long pc)
...
@@ -132,7 +135,7 @@ int do_user_muldiv(struct pt_regs *regs, unsigned long pc)
"mov %%o0, %0
\n\t
"
"mov %%o0, %0
\n\t
"
"mov %%o1, %1
\n\t
"
"mov %%o1, %1
\n\t
"
:
"=r"
(
rs1
),
"=r"
(
rs2
)
:
"=r"
(
rs1
),
"=r"
(
rs2
)
:
:
"0"
(
rs1
),
"1"
(
rs2
)
:
"o0"
,
"o1"
,
"o2"
,
"o3"
,
"o4"
,
"o5"
,
"o7"
,
"cc"
);
:
"o0"
,
"o1"
,
"o2"
,
"o3"
,
"o4"
,
"o5"
,
"o7"
,
"cc"
);
#ifdef DEBUG_MULDIV
#ifdef DEBUG_MULDIV
printk
(
"0x%x%08x
\n
"
,
rs2
,
rs1
);
printk
(
"0x%x%08x
\n
"
,
rs2
,
rs1
);
...
@@ -152,7 +155,7 @@ int do_user_muldiv(struct pt_regs *regs, unsigned long pc)
...
@@ -152,7 +155,7 @@ int do_user_muldiv(struct pt_regs *regs, unsigned long pc)
"mov %%o0, %0
\n\t
"
"mov %%o0, %0
\n\t
"
"mov %%o1, %1
\n\t
"
"mov %%o1, %1
\n\t
"
:
"=r"
(
rs1
),
"=r"
(
rs2
)
:
"=r"
(
rs1
),
"=r"
(
rs2
)
:
:
"0"
(
rs1
),
"1"
(
rs2
)
:
"o0"
,
"o1"
,
"o2"
,
"o3"
,
"o4"
,
"o5"
,
"o7"
,
"cc"
);
:
"o0"
,
"o1"
,
"o2"
,
"o3"
,
"o4"
,
"o5"
,
"o7"
,
"cc"
);
#ifdef DEBUG_MULDIV
#ifdef DEBUG_MULDIV
printk
(
"0x%x%08x
\n
"
,
rs2
,
rs1
);
printk
(
"0x%x%08x
\n
"
,
rs2
,
rs1
);
...
@@ -181,7 +184,7 @@ int do_user_muldiv(struct pt_regs *regs, unsigned long pc)
...
@@ -181,7 +184,7 @@ int do_user_muldiv(struct pt_regs *regs, unsigned long pc)
"mov %%o1, %0
\n\t
"
"mov %%o1, %0
\n\t
"
"mov %%o0, %1
\n\t
"
"mov %%o0, %1
\n\t
"
:
"=r"
(
rs1
),
"=r"
(
rs2
)
:
"=r"
(
rs1
),
"=r"
(
rs2
)
:
"r"
(
regs
->
y
)
:
"r"
(
regs
->
y
)
,
"0"
(
rs1
),
"1"
(
rs2
)
:
"o0"
,
"o1"
,
"o2"
,
"o3"
,
"o4"
,
"o5"
,
"o7"
,
:
"o0"
,
"o1"
,
"o2"
,
"o3"
,
"o4"
,
"o5"
,
"o7"
,
"g1"
,
"g2"
,
"g3"
,
"cc"
);
"g1"
,
"g2"
,
"g3"
,
"cc"
);
#ifdef DEBUG_MULDIV
#ifdef DEBUG_MULDIV
...
@@ -210,7 +213,7 @@ int do_user_muldiv(struct pt_regs *regs, unsigned long pc)
...
@@ -210,7 +213,7 @@ int do_user_muldiv(struct pt_regs *regs, unsigned long pc)
"mov %%o1, %0
\n\t
"
"mov %%o1, %0
\n\t
"
"mov %%o0, %1
\n\t
"
"mov %%o0, %1
\n\t
"
:
"=r"
(
rs1
),
"=r"
(
rs2
)
:
"=r"
(
rs1
),
"=r"
(
rs2
)
:
"r"
(
regs
->
y
)
:
"r"
(
regs
->
y
)
,
"0"
(
rs1
),
"1"
(
rs2
)
:
"o0"
,
"o1"
,
"o2"
,
"o3"
,
"o4"
,
"o5"
,
"o7"
,
:
"o0"
,
"o1"
,
"o2"
,
"o3"
,
"o4"
,
"o5"
,
"o7"
,
"g1"
,
"g2"
,
"g3"
,
"cc"
);
"g1"
,
"g2"
,
"g3"
,
"cc"
);
#ifdef DEBUG_MULDIV
#ifdef DEBUG_MULDIV
...
...
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