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
ac18ec7d
Commit
ac18ec7d
authored
Apr 05, 2003
by
Pete Zaitcev
Committed by
David S. Miller
Apr 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[sparc]: BUglet in copy_thread
parent
2ba74897
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
arch/sparc/kernel/process.c
arch/sparc/kernel/process.c
+8
-1
No files found.
arch/sparc/kernel/process.c
View file @
ac18ec7d
...
...
@@ -523,9 +523,16 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long sp,
new_stack
=
(((
struct
reg_window
*
)
childregs
)
-
1
);
copy_regwin
(
new_stack
,
(((
struct
reg_window
*
)
regs
)
-
1
));
/*
* A new process must start with interrupts closed in 2.5,
* because this is how Mingo's scheduler works (see schedule_tail
* and finish_arch_switch). If we do not do it, a timer interrupt hits
* before we unlock, attempts to re-take the rq->lock, and then we die.
* Thus, kpsr|=PSR_PIL.
*/
ti
->
ksp
=
(
unsigned
long
)
new_stack
;
ti
->
kpc
=
(((
unsigned
long
)
ret_from_fork
)
-
0x8
);
ti
->
kpsr
=
current
->
thread
.
fork_kpsr
;
ti
->
kpsr
=
current
->
thread
.
fork_kpsr
|
PSR_PIL
;
ti
->
kwim
=
current
->
thread
.
fork_kwim
;
/* This is used for sun4c only */
...
...
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