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
64b3122d
Commit
64b3122d
authored
Dec 27, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mips: take the "zero newsp means inherit the parent's one" to copy_thread()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
974fdb3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
arch/mips/kernel/linux32.c
arch/mips/kernel/linux32.c
+0
-2
arch/mips/kernel/process.c
arch/mips/kernel/process.c
+2
-1
arch/mips/kernel/syscall.c
arch/mips/kernel/syscall.c
+1
-3
No files found.
arch/mips/kernel/linux32.c
View file @
64b3122d
...
...
@@ -289,8 +289,6 @@ _sys32_clone(nabi_no_regargs struct pt_regs regs)
clone_flags
=
regs
.
regs
[
4
];
newsp
=
regs
.
regs
[
5
];
if
(
!
newsp
)
newsp
=
regs
.
regs
[
29
];
parent_tidptr
=
(
int
__user
*
)
regs
.
regs
[
6
];
/* Use __dummy4 instead of getting it off the stack, so that
...
...
arch/mips/kernel/process.c
View file @
64b3122d
...
...
@@ -156,7 +156,8 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
*
childregs
=
*
regs
;
childregs
->
regs
[
7
]
=
0
;
/* Clear error flag */
childregs
->
regs
[
2
]
=
0
;
/* Child gets zero as return value */
childregs
->
regs
[
29
]
=
usp
;
if
(
usp
)
childregs
->
regs
[
29
]
=
usp
;
ti
->
addr_limit
=
USER_DS
;
p
->
thread
.
reg29
=
(
unsigned
long
)
childregs
;
...
...
arch/mips/kernel/syscall.c
View file @
64b3122d
...
...
@@ -86,7 +86,7 @@ save_static_function(sys_fork);
static
int
__used
noinline
_sys_fork
(
nabi_no_regargs
struct
pt_regs
regs
)
{
return
do_fork
(
SIGCHLD
,
regs
.
regs
[
29
]
,
0
,
NULL
,
NULL
);
return
do_fork
(
SIGCHLD
,
0
,
0
,
NULL
,
NULL
);
}
save_static_function
(
sys_clone
);
...
...
@@ -99,8 +99,6 @@ _sys_clone(nabi_no_regargs struct pt_regs regs)
clone_flags
=
regs
.
regs
[
4
];
newsp
=
regs
.
regs
[
5
];
if
(
!
newsp
)
newsp
=
regs
.
regs
[
29
];
parent_tidptr
=
(
int
__user
*
)
regs
.
regs
[
6
];
#ifdef CONFIG_32BIT
/* We need to fetch the fifth argument off the stack. */
...
...
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