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
4dfe3e6c
Commit
4dfe3e6c
authored
Mar 19, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Add die_counter changes.
parent
d8248c68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
arch/sparc/kernel/traps.c
arch/sparc/kernel/traps.c
+2
-1
arch/sparc64/kernel/traps.c
arch/sparc64/kernel/traps.c
+2
-1
No files found.
arch/sparc/kernel/traps.c
View file @
4dfe3e6c
...
@@ -89,6 +89,7 @@ void instruction_dump (unsigned long *pc)
...
@@ -89,6 +89,7 @@ void instruction_dump (unsigned long *pc)
void
die_if_kernel
(
char
*
str
,
struct
pt_regs
*
regs
)
void
die_if_kernel
(
char
*
str
,
struct
pt_regs
*
regs
)
{
{
static
int
die_counter
;
int
count
=
0
;
int
count
=
0
;
/* Amuse the user. */
/* Amuse the user. */
...
@@ -98,7 +99,7 @@ void die_if_kernel(char *str, struct pt_regs *regs)
...
@@ -98,7 +99,7 @@ void die_if_kernel(char *str, struct pt_regs *regs)
" /_|
\\
__/ |_
\\\n
"
" /_|
\\
__/ |_
\\\n
"
"
\\
__U_/
\n
"
);
"
\\
__U_/
\n
"
);
printk
(
"%s(%d): %s
\n
"
,
current
->
comm
,
current
->
pid
,
st
r
);
printk
(
"%s(%d): %s
[#%d]
\n
"
,
current
->
comm
,
current
->
pid
,
str
,
++
die_counte
r
);
show_regs
(
regs
);
show_regs
(
regs
);
__SAVE
;
__SAVE
;
__SAVE
;
__SAVE
;
__SAVE
;
__SAVE
;
__SAVE
;
__SAVE
;
...
...
arch/sparc64/kernel/traps.c
View file @
4dfe3e6c
...
@@ -1599,6 +1599,7 @@ void show_trace_task(struct task_struct *tsk)
...
@@ -1599,6 +1599,7 @@ void show_trace_task(struct task_struct *tsk)
void
die_if_kernel
(
char
*
str
,
struct
pt_regs
*
regs
)
void
die_if_kernel
(
char
*
str
,
struct
pt_regs
*
regs
)
{
{
static
int
die_counter
;
extern
void
__show_regs
(
struct
pt_regs
*
regs
);
extern
void
__show_regs
(
struct
pt_regs
*
regs
);
extern
void
smp_report_regs
(
void
);
extern
void
smp_report_regs
(
void
);
int
count
=
0
;
int
count
=
0
;
...
@@ -1611,7 +1612,7 @@ void die_if_kernel(char *str, struct pt_regs *regs)
...
@@ -1611,7 +1612,7 @@ void die_if_kernel(char *str, struct pt_regs *regs)
" /_|
\\
__/ |_
\\\n
"
" /_|
\\
__/ |_
\\\n
"
"
\\
__U_/
\n
"
);
"
\\
__U_/
\n
"
);
printk
(
"%s(%d): %s
\n
"
,
current
->
comm
,
current
->
pid
,
st
r
);
printk
(
"%s(%d): %s
[#%d]
\n
"
,
current
->
comm
,
current
->
pid
,
str
,
++
die_counte
r
);
__asm__
__volatile__
(
"flushw"
);
__asm__
__volatile__
(
"flushw"
);
__show_regs
(
regs
);
__show_regs
(
regs
);
if
(
regs
->
tstate
&
TSTATE_PRIV
)
{
if
(
regs
->
tstate
&
TSTATE_PRIV
)
{
...
...
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