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
98edfab4
Commit
98edfab4
authored
Dec 15, 2014
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: add some more comments to ret_from_fork
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
4c86231c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
arch/arc/kernel/entry.S
arch/arc/kernel/entry.S
+9
-5
No files found.
arch/arc/kernel/entry.S
View file @
98edfab4
...
...
@@ -736,16 +736,20 @@ ENTRY(ret_from_fork)
; put last task in scheduler queue
bl
@
schedule_tail
; If kernel thread, jump to its entry-point
ld
r9
,
[
sp
,
PT_status32
]
brne
r9
,
0
,
1
f
jl.d
[
r14
]
mov
r0
,
r13
;
arg to payload
jl.d
[
r14
]
; kernel thread entry point
mov
r0
,
r13
;
(see PF_KTHREAD block in copy_thread)
1
:
; special case of kernel_thread entry point returning back due to
; kernel_execve() - pretend return from syscall to ret to userland
; Return to user space
; 1. Any forked task (Reach here via BRne above)
; 2. First ever init task (Reach here via return from JL above)
; This is the historic "kernel_execve" use-case, to return to init
; user mode, in a round about way since that is always done from
; a kernel thread which is executed via JL above but always returns
; out whenever kernel_execve (now inline do_fork()) is involved
b
ret_from_exception
END
(
ret_from_fork
)
...
...
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