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
6bda0edc
Commit
6bda0edc
authored
Oct 30, 2002
by
Richard Henderson
Committed by
Richard Henderson
Oct 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update clone syscall for TID and TLS arguments.
parent
0a635c7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
arch/alpha/kernel/entry.S
arch/alpha/kernel/entry.S
+5
-3
arch/alpha/kernel/process.c
arch/alpha/kernel/process.c
+5
-2
No files found.
arch/alpha/kernel/entry.S
View file @
6bda0edc
...
...
@@ -452,7 +452,8 @@ sys_fork:
bsr
$
1
,
do_switch_stack
bis
$
31
,
SIGCHLD
,
$
16
mov
$
31
,
$
17
mov
$
30
,
$
18
mov
$
31
,
$
18
mov
$
30
,
$
19
jsr
$
26
,
alpha_clone
bsr
$
1
,
undo_switch_stack
ret
$
31
,(
$
26
),
1
...
...
@@ -463,8 +464,9 @@ sys_fork:
.
ent
sys_clone
sys_clone
:
bsr
$
1
,
do_switch_stack
/
*
arg1
and
arg2
come
from
the
user
*/
mov
$
30
,
$
18
/
*
$
16
,
$
17
,
$
18
,
$
19
come
from
the
user
; $19 is used later
via
pt_regs
->
r19
.
*/
mov
$
30
,
$
19
jsr
$
26
,
alpha_clone
bsr
$
1
,
undo_switch_stack
ret
$
31
,(
$
26
),
1
...
...
arch/alpha/kernel/process.c
View file @
6bda0edc
...
...
@@ -245,11 +245,10 @@ release_thread(struct task_struct *dead_task)
*/
int
alpha_clone
(
unsigned
long
clone_flags
,
unsigned
long
usp
,
struct
switch_stack
*
swstack
)
int
*
user_tid
,
struct
switch_stack
*
swstack
)
{
struct
task_struct
*
p
;
struct
pt_regs
*
u_regs
=
(
struct
pt_regs
*
)
(
swstack
+
1
);
int
*
user_tid
=
(
int
*
)
u_regs
->
r19
;
if
(
!
usp
)
usp
=
rdusp
();
...
...
@@ -314,6 +313,10 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
childti
->
pcb
.
ksp
=
(
unsigned
long
)
childstack
;
childti
->
pcb
.
flags
=
1
;
/* set FEN, clear everything else */
/* Set a new TLS for the child thread? Peek back into the
syscall arguments that we saved on syscall entry. */
childti
->
pcb
.
unique
=
(
clone_flags
&
CLONE_SETTLS
?
regs
->
r19
:
0
);
return
0
;
}
...
...
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