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
3bfa3454
Commit
3bfa3454
authored
May 19, 2003
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALPHA] Update for do_fork changes.
From Marc Zyngier <mzyngier@freesurf.fr>.
parent
2e815fb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
arch/alpha/kernel/process.c
arch/alpha/kernel/process.c
+4
-9
arch/alpha/kernel/smp.c
arch/alpha/kernel/smp.c
+7
-2
No files found.
arch/alpha/kernel/process.c
View file @
3bfa3454
...
...
@@ -235,23 +235,18 @@ int
alpha_clone
(
unsigned
long
clone_flags
,
unsigned
long
usp
,
int
*
parent_tid
,
int
*
child_tid
,
unsigned
long
tls_value
,
struct
pt_regs
*
regs
)
{
struct
task_struct
*
p
;
if
(
!
usp
)
usp
=
rdusp
();
p
=
do_fork
(
clone_flags
&
~
CLONE_IDLETASK
,
usp
,
regs
,
0
,
parent_tid
,
child_tid
);
return
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
;
return
do_fork
(
clone_flags
&
~
CLONE_IDLETASK
,
usp
,
regs
,
0
,
parent_tid
,
child_tid
);
}
int
alpha_vfork
(
struct
pt_regs
*
regs
)
{
struct
task_struct
*
p
;
p
=
do_fork
(
CLONE_VFORK
|
CLONE_VM
|
SIGCHLD
,
rdusp
(),
regs
,
0
,
NULL
,
NULL
);
return
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
;
return
do_fork
(
CLONE_VFORK
|
CLONE_VM
|
SIGCHLD
,
rdusp
(),
regs
,
0
,
NULL
,
NULL
);
}
/*
...
...
arch/alpha/kernel/smp.c
View file @
3bfa3454
...
...
@@ -417,7 +417,12 @@ fork_by_hand(void)
/* Don't care about the contents of regs since we'll never
reschedule the forked task. */
struct
pt_regs
regs
;
return
do_fork
(
CLONE_VM
|
CLONE_IDLETASK
,
0
,
&
regs
,
0
,
NULL
,
NULL
);
int
pid
;
pid
=
do_fork
(
CLONE_VM
|
CLONE_IDLETASK
,
0
,
&
regs
,
0
,
NULL
,
NULL
);
if
(
pid
<
0
)
return
NULL
;
return
find_task_by_pid
(
pid
);
}
/*
...
...
@@ -436,7 +441,7 @@ smp_boot_one_cpu(int cpuid)
wish. We can't use kernel_thread since we must avoid
rescheduling the child. */
idle
=
fork_by_hand
();
if
(
IS_ERR
(
idle
)
)
if
(
!
idle
)
panic
(
"failed fork for CPU %d"
,
cpuid
);
init_idle
(
idle
,
cpuid
);
...
...
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