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
ccfd6724
Commit
ccfd6724
authored
Jul 10, 2003
by
Miles Bader
Committed by
Linus Torvalds
Jul 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] show_stack changes for v850
parent
ab48a939
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
arch/v850/kernel/bug.c
arch/v850/kernel/bug.c
+15
-5
No files found.
arch/v850/kernel/bug.c
View file @
ccfd6724
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include <asm/errno.h>
#include <asm/errno.h>
#include <asm/ptrace.h>
#include <asm/ptrace.h>
#include <asm/processor.h>
#include <asm/current.h>
#include <asm/current.h>
/* We should use __builtin_return_address, but it doesn't work in gcc-2.90
/* We should use __builtin_return_address, but it doesn't work in gcc-2.90
...
@@ -100,12 +101,21 @@ void show_regs (struct pt_regs *regs)
...
@@ -100,12 +101,21 @@ void show_regs (struct pt_regs *regs)
}
}
}
}
void
show_stack
(
unsigned
long
*
sp
)
/*
* TASK is a pointer to the task whose backtrace we want to see (or NULL
* for current task), SP is the stack pointer of the first frame that
* should be shown in the back trace (or NULL if the entire call-chain of
* the task should be shown).
*/
void
show_stack
(
struct
task_struct
*
task
,
unsigned
long
*
sp
)
{
{
unsigned
long
end
;
unsigned
long
addr
,
end
;
unsigned
long
addr
=
(
unsigned
long
)
sp
;
if
(
!
addr
)
if
(
sp
)
addr
=
(
unsigned
long
)
sp
;
else
if
(
task
)
addr
=
task_sp
(
task
);
else
addr
=
stack_addr
();
addr
=
stack_addr
();
addr
=
addr
&
~
3
;
addr
=
addr
&
~
3
;
...
@@ -125,5 +135,5 @@ void show_stack (unsigned long *sp)
...
@@ -125,5 +135,5 @@ void show_stack (unsigned long *sp)
void
dump_stack
()
void
dump_stack
()
{
{
show_stack
(
0
);
show_stack
(
0
,
0
);
}
}
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