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
6d74a7e9
Commit
6d74a7e9
authored
Sep 19, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: CLEARTID/SETTID fixes
parent
82421cec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
arch/ppc64/kernel/process.c
arch/ppc64/kernel/process.c
+10
-2
No files found.
arch/ppc64/kernel/process.c
View file @
6d74a7e9
...
...
@@ -169,6 +169,8 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
extern
void
ret_from_fork
(
void
);
unsigned
long
sp
=
(
unsigned
long
)
p
->
thread_info
+
THREAD_SIZE
;
p
->
user_tid
=
NULL
;
/* Copy registers */
sp
-=
sizeof
(
struct
pt_regs
);
childregs
=
(
struct
pt_regs
*
)
sp
;
...
...
@@ -260,13 +262,19 @@ int sys_clone(unsigned long clone_flags, u32 p2, u32 p3, u32 p4, u32 p5,
u32
p6
,
struct
pt_regs
*
regs
)
{
struct
task_struct
*
p
;
int
*
user_tid
=
(
int
*
)
p3
;
unsigned
long
tid_ptr
=
0
;
if
(
clone_flags
&
(
CLONE_SETTID
|
CLONE_CLEARTID
))
{
tid_ptr
=
p3
;
if
(
test_thread_flag
(
TIF_32BIT
))
tid_ptr
&=
0xffffffff
;
}
if
(
regs
->
msr
&
MSR_FP
)
giveup_fpu
(
current
);
p
=
do_fork
(
clone_flags
&
~
CLONE_IDLETASK
,
regs
->
gpr
[
1
],
regs
,
0
,
user_tid
);
(
int
*
)
tid_ptr
);
return
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
;
}
...
...
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