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
Kirill Smelkov
linux
Commits
6b373781
Commit
6b373781
authored
Jul 12, 2003
by
Pete Zaitcev
Committed by
David S. Miller
Jul 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Redo show_stack().
parent
a49ba2e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
arch/sparc/kernel/process.c
arch/sparc/kernel/process.c
+10
-8
No files found.
arch/sparc/kernel/process.c
View file @
6b373781
...
...
@@ -287,13 +287,22 @@ void show_regs(struct pt_regs *r)
rw
->
ins
[
4
],
rw
->
ins
[
5
],
rw
->
ins
[
6
],
rw
->
ins
[
7
]);
}
/*
* The show_stack is an external API which we do not use ourselves.
* The oops is printed in die_if_kernel.
*/
void
show_stack
(
struct
task_struct
*
tsk
,
unsigned
long
*
_ksp
)
{
unsigned
long
pc
,
fp
;
unsigned
long
task_base
=
(
unsigned
long
)
tsk
;
unsigned
long
task_base
;
struct
reg_window
*
rw
;
int
count
=
0
;
if
(
tsk
!=
NULL
)
task_base
=
(
unsigned
long
)
tsk
->
thread_info
;
else
task_base
=
(
unsigned
long
)
current_thread_info
();
fp
=
(
unsigned
long
)
_ksp
;
do
{
/* Bogus frame pointer? */
...
...
@@ -308,13 +317,6 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
printk
(
"
\n
"
);
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
if
(
tsk
)
show_stack
(
tsk
,
(
unsigned
long
*
)
tsk
->
thread_info
->
ksp
);
}
/*
* Note: sparc64 has a pretty intricated thread_saved_pc, check it out.
*/
...
...
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