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
c6489c14
Commit
c6489c14
authored
Feb 03, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
12890d0f
' into arch-mips
parents
0aa0203f
12890d0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
arch/mips/kernel/syscall.c
arch/mips/kernel/syscall.c
+6
-13
No files found.
arch/mips/kernel/syscall.c
View file @
c6489c14
...
...
@@ -138,10 +138,10 @@ SYSCALL_DEFINE1(set_thread_area, unsigned long, addr)
return
0
;
}
static
inline
int
mips_atomic_set
(
struct
pt_regs
*
regs
,
unsigned
long
addr
,
unsigned
long
new
)
static
inline
int
mips_atomic_set
(
unsigned
long
addr
,
unsigned
long
new
)
{
unsigned
long
old
,
tmp
;
struct
pt_regs
*
regs
;
unsigned
int
err
;
if
(
unlikely
(
addr
&
3
))
...
...
@@ -222,6 +222,7 @@ static inline int mips_atomic_set(struct pt_regs *regs,
if
(
unlikely
(
err
))
return
err
;
regs
=
current_pt_regs
();
regs
->
regs
[
2
]
=
old
;
regs
->
regs
[
7
]
=
0
;
/* No error */
...
...
@@ -235,22 +236,14 @@ static inline int mips_atomic_set(struct pt_regs *regs,
:
"r"
(
regs
));
/* unreached. Honestly. */
while
(
1
);
unreachable
(
);
}
save_static_function
(
sys_sysmips
);
static
int
__used
noinline
_sys_sysmips
(
nabi_no_regargs
struct
pt_regs
regs
)
SYSCALL_DEFINE3
(
sysmips
,
long
,
cmd
,
long
,
arg1
,
long
,
arg2
)
{
long
cmd
,
arg1
,
arg2
;
cmd
=
regs
.
regs
[
4
];
arg1
=
regs
.
regs
[
5
];
arg2
=
regs
.
regs
[
6
];
switch
(
cmd
)
{
case
MIPS_ATOMIC_SET
:
return
mips_atomic_set
(
&
regs
,
arg1
,
arg2
);
return
mips_atomic_set
(
arg1
,
arg2
);
case
MIPS_FIXADE
:
if
(
arg1
&
~
3
)
...
...
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