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
bddd7645
Commit
bddd7645
authored
Feb 24, 2004
by
Tom Rini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: print useful flags in oops, like x86 / ppc64.
parent
e755679d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
arch/ppc/kernel/traps.c
arch/ppc/kernel/traps.c
+11
-0
No files found.
arch/ppc/kernel/traps.c
View file @
bddd7645
...
@@ -79,6 +79,7 @@ spinlock_t die_lock = SPIN_LOCK_UNLOCKED;
...
@@ -79,6 +79,7 @@ spinlock_t die_lock = SPIN_LOCK_UNLOCKED;
void
die
(
const
char
*
str
,
struct
pt_regs
*
fp
,
long
err
)
void
die
(
const
char
*
str
,
struct
pt_regs
*
fp
,
long
err
)
{
{
static
int
die_counter
;
static
int
die_counter
;
int
nl
=
0
;
console_verbose
();
console_verbose
();
spin_lock_irq
(
&
die_lock
);
spin_lock_irq
(
&
die_lock
);
#ifdef CONFIG_PMAC_BACKLIGHT
#ifdef CONFIG_PMAC_BACKLIGHT
...
@@ -86,6 +87,16 @@ void die(const char * str, struct pt_regs * fp, long err)
...
@@ -86,6 +87,16 @@ void die(const char * str, struct pt_regs * fp, long err)
set_backlight_level
(
BACKLIGHT_MAX
);
set_backlight_level
(
BACKLIGHT_MAX
);
#endif
#endif
printk
(
"Oops: %s, sig: %ld [#%d]
\n
"
,
str
,
err
,
++
die_counter
);
printk
(
"Oops: %s, sig: %ld [#%d]
\n
"
,
str
,
err
,
++
die_counter
);
#ifdef CONFIG_PREEMPT
printk
(
"PREEMPT "
);
nl
=
1
;
#endif
#ifdef CONFIG_SMP
printk
(
"SMP NR_CPUS=%d "
,
NR_CPUS
);
nl
=
1
;
#endif
if
(
nl
)
printk
(
"
\n
"
);
show_regs
(
fp
);
show_regs
(
fp
);
spin_unlock_irq
(
&
die_lock
);
spin_unlock_irq
(
&
die_lock
);
/* do_exit() should take care of panic'ing from an interrupt
/* do_exit() should take care of panic'ing from an interrupt
...
...
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