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
4165cb26
Commit
4165cb26
authored
May 19, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC{32,64}]: Adjust for changed do_fork return value.
parent
a76e8f99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
13 deletions
+8
-13
arch/sparc/kernel/process.c
arch/sparc/kernel/process.c
+4
-6
arch/sparc64/kernel/process.c
arch/sparc64/kernel/process.c
+4
-7
No files found.
arch/sparc/kernel/process.c
View file @
4165cb26
...
@@ -403,7 +403,6 @@ asmlinkage int sparc_do_fork(unsigned long clone_flags,
...
@@ -403,7 +403,6 @@ asmlinkage int sparc_do_fork(unsigned long clone_flags,
{
{
unsigned
long
parent_tid_ptr
=
0
;
unsigned
long
parent_tid_ptr
=
0
;
unsigned
long
child_tid_ptr
=
0
;
unsigned
long
child_tid_ptr
=
0
;
struct
task_struct
*
p
;
clone_flags
&=
~
CLONE_IDLETASK
;
clone_flags
&=
~
CLONE_IDLETASK
;
...
@@ -411,11 +410,10 @@ asmlinkage int sparc_do_fork(unsigned long clone_flags,
...
@@ -411,11 +410,10 @@ asmlinkage int sparc_do_fork(unsigned long clone_flags,
parent_tid_ptr
=
regs
->
u_regs
[
UREG_G2
];
parent_tid_ptr
=
regs
->
u_regs
[
UREG_G2
];
child_tid_ptr
=
regs
->
u_regs
[
UREG_G3
];
child_tid_ptr
=
regs
->
u_regs
[
UREG_G3
];
}
}
p
=
do_fork
(
clone_flags
,
stack_start
,
return
do_fork
(
clone_flags
,
stack_start
,
regs
,
stack_size
,
regs
,
stack_size
,
(
int
*
)
parent_tid_ptr
,
(
int
*
)
parent_tid_ptr
,
(
int
*
)
child_tid_ptr
);
(
int
*
)
child_tid_ptr
);
return
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
;
}
}
/* Copy a Sparc thread. The fork() return value conventions
/* Copy a Sparc thread. The fork() return value conventions
...
...
arch/sparc64/kernel/process.c
View file @
4165cb26
...
@@ -568,7 +568,6 @@ asmlinkage int sparc_do_fork(unsigned long clone_flags,
...
@@ -568,7 +568,6 @@ asmlinkage int sparc_do_fork(unsigned long clone_flags,
struct
pt_regs
*
regs
,
struct
pt_regs
*
regs
,
unsigned
long
stack_size
)
unsigned
long
stack_size
)
{
{
struct
task_struct
*
p
;
unsigned
long
parent_tid_ptr
=
0
;
unsigned
long
parent_tid_ptr
=
0
;
unsigned
long
child_tid_ptr
=
0
;
unsigned
long
child_tid_ptr
=
0
;
...
@@ -583,12 +582,10 @@ asmlinkage int sparc_do_fork(unsigned long clone_flags,
...
@@ -583,12 +582,10 @@ asmlinkage int sparc_do_fork(unsigned long clone_flags,
}
}
}
}
p
=
do_fork
(
clone_flags
,
stack_start
,
return
do_fork
(
clone_flags
,
stack_start
,
regs
,
stack_size
,
regs
,
stack_size
,
(
int
*
)
parent_tid_ptr
,
(
int
*
)
parent_tid_ptr
,
(
int
*
)
child_tid_ptr
);
(
int
*
)
child_tid_ptr
);
return
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
;
}
}
/* Copy a Sparc thread. The fork() return value conventions
/* Copy a Sparc thread. The fork() return value conventions
...
...
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