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
Kirill Smelkov
linux
Commits
53b50f94
Commit
53b50f94
authored
Oct 21, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc: take dereferencing to ret_from_kernel_thread()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
40792104
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/entry_64.S
+1
-0
arch/powerpc/kernel/process.c
arch/powerpc/kernel/process.c
+1
-3
No files found.
arch/powerpc/kernel/entry_64.S
View file @
53b50f94
...
...
@@ -373,6 +373,7 @@ _GLOBAL(ret_from_fork)
_GLOBAL
(
ret_from_kernel_thread
)
bl
.
schedule_tail
REST_NVGPRS
(
r1
)
ld
r14
,
0
(
r14
)
mtlr
r14
mr
r3
,
r15
blrl
...
...
arch/powerpc/kernel/process.c
View file @
53b50f94
...
...
@@ -749,12 +749,10 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
struct
thread_info
*
ti
=
(
void
*
)
task_stack_page
(
p
);
memset
(
childregs
,
0
,
sizeof
(
struct
pt_regs
));
childregs
->
gpr
[
1
]
=
sp
+
sizeof
(
struct
pt_regs
);
childregs
->
gpr
[
14
]
=
usp
;
/* function */
#ifdef CONFIG_PPC64
childregs
->
gpr
[
14
]
=
*
(
unsigned
long
*
)
usp
;
clear_tsk_thread_flag
(
p
,
TIF_32BIT
);
childregs
->
softe
=
1
;
#else
childregs
->
gpr
[
14
]
=
usp
;
/* function */
#endif
childregs
->
gpr
[
15
]
=
arg
;
p
->
thread
.
regs
=
NULL
;
/* no user register state */
...
...
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