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
187e9822
Commit
187e9822
authored
Jan 17, 2003
by
Jeff Dike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some SMP fixes from Oleg.
parent
02090fba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
arch/um/kernel/tt/process_kern.c
arch/um/kernel/tt/process_kern.c
+5
-3
No files found.
arch/um/kernel/tt/process_kern.c
View file @
187e9822
...
@@ -112,6 +112,8 @@ void exit_thread_tt(void)
...
@@ -112,6 +112,8 @@ void exit_thread_tt(void)
close
(
current
->
thread
.
mode
.
tt
.
switch_pipe
[
1
]);
close
(
current
->
thread
.
mode
.
tt
.
switch_pipe
[
1
]);
}
}
void
schedule_tail
(
task_t
*
prev
);
static
void
new_thread_handler
(
int
sig
)
static
void
new_thread_handler
(
int
sig
)
{
{
int
(
*
fn
)(
void
*
);
int
(
*
fn
)(
void
*
);
...
@@ -125,7 +127,7 @@ static void new_thread_handler(int sig)
...
@@ -125,7 +127,7 @@ static void new_thread_handler(int sig)
block_signals
();
block_signals
();
init_new_thread_signals
(
1
);
init_new_thread_signals
(
1
);
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
schedule_tail
(
NULL
);
schedule_tail
(
current
->
thread
.
prev_sched
);
#endif
#endif
enable_timer
();
enable_timer
();
free_page
(
current
->
thread
.
temp_stack
);
free_page
(
current
->
thread
.
temp_stack
);
...
@@ -167,7 +169,7 @@ void finish_fork_handler(int sig)
...
@@ -167,7 +169,7 @@ void finish_fork_handler(int sig)
#endif
#endif
enable_timer
();
enable_timer
();
change_sig
(
SIGVTALRM
,
1
);
change_sig
(
SIGVTALRM
,
1
);
sti
();
local_irq_disable
();
force_flush_all
();
force_flush_all
();
if
(
current
->
mm
!=
current
->
parent
->
mm
)
if
(
current
->
mm
!=
current
->
parent
->
mm
)
protect_memory
(
uml_reserved
,
high_physmem
-
uml_reserved
,
1
,
protect_memory
(
uml_reserved
,
high_physmem
-
uml_reserved
,
1
,
...
@@ -187,7 +189,7 @@ int fork_tramp(void *stack)
...
@@ -187,7 +189,7 @@ int fork_tramp(void *stack)
{
{
int
sig
=
sigusr1
;
int
sig
=
sigusr1
;
cli
();
local_irq_enable
();
init_new_thread_stack
(
stack
,
finish_fork_handler
);
init_new_thread_stack
(
stack
,
finish_fork_handler
);
kill
(
os_getpid
(),
sig
);
kill
(
os_getpid
(),
sig
);
...
...
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