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
9e22c5f1
Commit
9e22c5f1
authored
Jul 25, 2003
by
Geert Uytterhoeven
Committed by
Jens Axboe
Jul 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] m68k do_fork()
M68k: Update for changed do_fork() semantics in 2.5.70
parent
d50b8c68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
arch/m68k/kernel/process.c
arch/m68k/kernel/process.c
+5
-11
No files found.
arch/m68k/kernel/process.c
View file @
9e22c5f1
...
@@ -202,24 +202,19 @@ void flush_thread(void)
...
@@ -202,24 +202,19 @@ void flush_thread(void)
asmlinkage
int
m68k_fork
(
struct
pt_regs
*
regs
)
asmlinkage
int
m68k_fork
(
struct
pt_regs
*
regs
)
{
{
struct
task_struct
*
p
;
return
do_fork
(
SIGCHLD
,
rdusp
(),
regs
,
0
,
NULL
,
NULL
);
p
=
do_fork
(
SIGCHLD
,
rdusp
(),
regs
,
0
,
NULL
,
NULL
);
return
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
;
}
}
asmlinkage
int
m68k_vfork
(
struct
pt_regs
*
regs
)
asmlinkage
int
m68k_vfork
(
struct
pt_regs
*
regs
)
{
{
struct
task_struct
*
p
;
return
do_fork
(
CLONE_VFORK
|
CLONE_VM
|
SIGCHLD
,
rdusp
(),
regs
,
0
,
p
=
do_fork
(
CLONE_VFORK
|
CLONE_VM
|
SIGCHLD
,
rdusp
(),
regs
,
0
,
NULL
,
NULL
,
NULL
);
NULL
);
return
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
;
}
}
asmlinkage
int
m68k_clone
(
struct
pt_regs
*
regs
)
asmlinkage
int
m68k_clone
(
struct
pt_regs
*
regs
)
{
{
unsigned
long
clone_flags
;
unsigned
long
clone_flags
;
unsigned
long
newsp
;
unsigned
long
newsp
;
struct
task_struct
*
p
;
int
*
parent_tidptr
,
*
child_tidptr
;
int
*
parent_tidptr
,
*
child_tidptr
;
/* syscall2 puts clone_flags in d1 and usp in d2 */
/* syscall2 puts clone_flags in d1 and usp in d2 */
...
@@ -229,9 +224,8 @@ asmlinkage int m68k_clone(struct pt_regs *regs)
...
@@ -229,9 +224,8 @@ asmlinkage int m68k_clone(struct pt_regs *regs)
child_tidptr
=
(
int
*
)
regs
->
d4
;
child_tidptr
=
(
int
*
)
regs
->
d4
;
if
(
!
newsp
)
if
(
!
newsp
)
newsp
=
rdusp
();
newsp
=
rdusp
();
p
=
do_fork
(
clone_flags
&
~
CLONE_IDLETASK
,
newsp
,
regs
,
0
,
return
do_fork
(
clone_flags
&
~
CLONE_IDLETASK
,
newsp
,
regs
,
0
,
parent_tidptr
,
child_tidptr
);
parent_tidptr
,
child_tidptr
);
return
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
;
}
}
int
copy_thread
(
int
nr
,
unsigned
long
clone_flags
,
unsigned
long
usp
,
int
copy_thread
(
int
nr
,
unsigned
long
clone_flags
,
unsigned
long
usp
,
...
...
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