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
42048a0c
Commit
42048a0c
authored
Mar 22, 2003
by
Paul Mackerras
Committed by
Anton Blanchard
Mar 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: make sys_clone handle the CLONE_SETTLS flag
parent
b38b62c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
arch/ppc64/kernel/process.c
arch/ppc64/kernel/process.c
+7
-1
No files found.
arch/ppc64/kernel/process.c
View file @
42048a0c
...
...
@@ -208,6 +208,12 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
}
else
{
childregs
->
gpr
[
1
]
=
usp
;
p
->
thread
.
regs
=
childregs
;
if
(
clone_flags
&
CLONE_SETTLS
)
{
if
(
test_thread_flag
(
TIF_32BIT
))
childregs
->
gpr
[
2
]
=
childregs
->
gpr
[
6
];
else
childregs
->
gpr
[
13
]
=
childregs
->
gpr
[
6
];
}
}
childregs
->
gpr
[
3
]
=
0
;
/* Result from fork() */
sp
-=
STACK_FRAME_OVERHEAD
;
...
...
@@ -304,7 +310,7 @@ int sys_clone(unsigned long clone_flags, unsigned long p2, unsigned long p3,
if
(
clone_flags
&
(
CLONE_PARENT_SETTID
|
CLONE_CHILD_SETTID
|
CLONE_CHILD_CLEARTID
))
{
parent_tidptr
=
p3
;
child_tidptr
=
p
4
;
child_tidptr
=
p
5
;
if
(
test_thread_flag
(
TIF_32BIT
))
{
parent_tidptr
&=
0xffffffff
;
child_tidptr
&=
0xffffffff
;
...
...
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