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
dc73e4c1
Commit
dc73e4c1
authored
Oct 09, 2013
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: traps: Reformat notify_die invocations to 80 columns.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
83e4da1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
arch/mips/kernel/traps.c
arch/mips/kernel/traps.c
+14
-10
No files found.
arch/mips/kernel/traps.c
View file @
dc73e4c1
...
@@ -371,7 +371,8 @@ void __noreturn die(const char *str, struct pt_regs *regs)
...
@@ -371,7 +371,8 @@ void __noreturn die(const char *str, struct pt_regs *regs)
oops_enter
();
oops_enter
();
if
(
notify_die
(
DIE_OOPS
,
str
,
regs
,
0
,
regs_to_trapnr
(
regs
),
SIGSEGV
)
==
NOTIFY_STOP
)
if
(
notify_die
(
DIE_OOPS
,
str
,
regs
,
0
,
regs_to_trapnr
(
regs
),
SIGSEGV
)
==
NOTIFY_STOP
)
sig
=
0
;
sig
=
0
;
console_verbose
();
console_verbose
();
...
@@ -462,8 +463,8 @@ asmlinkage void do_be(struct pt_regs *regs)
...
@@ -462,8 +463,8 @@ asmlinkage void do_be(struct pt_regs *regs)
printk
(
KERN_ALERT
"%s bus error, epc == %0*lx, ra == %0*lx
\n
"
,
printk
(
KERN_ALERT
"%s bus error, epc == %0*lx, ra == %0*lx
\n
"
,
data
?
"Data"
:
"Instruction"
,
data
?
"Data"
:
"Instruction"
,
field
,
regs
->
cp0_epc
,
field
,
regs
->
regs
[
31
]);
field
,
regs
->
cp0_epc
,
field
,
regs
->
regs
[
31
]);
if
(
notify_die
(
DIE_OOPS
,
"bus error"
,
regs
,
0
,
regs_to_trapnr
(
regs
),
SIGBUS
)
if
(
notify_die
(
DIE_OOPS
,
"bus error"
,
regs
,
0
,
regs_to_trapnr
(
regs
),
==
NOTIFY_STOP
)
SIGBUS
)
==
NOTIFY_STOP
)
goto
out
;
goto
out
;
die_if_kernel
(
"Oops"
,
regs
);
die_if_kernel
(
"Oops"
,
regs
);
...
@@ -732,8 +733,8 @@ asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
...
@@ -732,8 +733,8 @@ asmlinkage void do_fpe(struct pt_regs *regs, unsigned long fcr31)
siginfo_t
info
=
{
0
};
siginfo_t
info
=
{
0
};
prev_state
=
exception_enter
();
prev_state
=
exception_enter
();
if
(
notify_die
(
DIE_FP
,
"FP exception"
,
regs
,
0
,
regs_to_trapnr
(
regs
),
SIGFPE
)
if
(
notify_die
(
DIE_FP
,
"FP exception"
,
regs
,
0
,
regs_to_trapnr
(
regs
),
==
NOTIFY_STOP
)
SIGFPE
)
==
NOTIFY_STOP
)
goto
out
;
goto
out
;
die_if_kernel
(
"FP exception in kernel code"
,
regs
);
die_if_kernel
(
"FP exception in kernel code"
,
regs
);
...
@@ -803,7 +804,8 @@ static void do_trap_or_bp(struct pt_regs *regs, unsigned int code,
...
@@ -803,7 +804,8 @@ static void do_trap_or_bp(struct pt_regs *regs, unsigned int code,
return
;
return
;
#endif
/* CONFIG_KGDB_LOW_LEVEL_TRAP */
#endif
/* CONFIG_KGDB_LOW_LEVEL_TRAP */
if
(
notify_die
(
DIE_TRAP
,
str
,
regs
,
code
,
regs_to_trapnr
(
regs
),
SIGTRAP
)
==
NOTIFY_STOP
)
if
(
notify_die
(
DIE_TRAP
,
str
,
regs
,
code
,
regs_to_trapnr
(
regs
),
SIGTRAP
)
==
NOTIFY_STOP
)
return
;
return
;
/*
/*
...
@@ -897,12 +899,14 @@ asmlinkage void do_bp(struct pt_regs *regs)
...
@@ -897,12 +899,14 @@ asmlinkage void do_bp(struct pt_regs *regs)
*/
*/
switch
(
bcode
)
{
switch
(
bcode
)
{
case
BRK_KPROBE_BP
:
case
BRK_KPROBE_BP
:
if
(
notify_die
(
DIE_BREAK
,
"debug"
,
regs
,
bcode
,
regs_to_trapnr
(
regs
),
SIGTRAP
)
==
NOTIFY_STOP
)
if
(
notify_die
(
DIE_BREAK
,
"debug"
,
regs
,
bcode
,
regs_to_trapnr
(
regs
),
SIGTRAP
)
==
NOTIFY_STOP
)
goto
out
;
goto
out
;
else
else
break
;
break
;
case
BRK_KPROBE_SSTEPBP
:
case
BRK_KPROBE_SSTEPBP
:
if
(
notify_die
(
DIE_SSTEPBP
,
"single_step"
,
regs
,
bcode
,
regs_to_trapnr
(
regs
),
SIGTRAP
)
==
NOTIFY_STOP
)
if
(
notify_die
(
DIE_SSTEPBP
,
"single_step"
,
regs
,
bcode
,
regs_to_trapnr
(
regs
),
SIGTRAP
)
==
NOTIFY_STOP
)
goto
out
;
goto
out
;
else
else
break
;
break
;
...
@@ -966,8 +970,8 @@ asmlinkage void do_ri(struct pt_regs *regs)
...
@@ -966,8 +970,8 @@ asmlinkage void do_ri(struct pt_regs *regs)
int
status
=
-
1
;
int
status
=
-
1
;
prev_state
=
exception_enter
();
prev_state
=
exception_enter
();
if
(
notify_die
(
DIE_RI
,
"RI Fault"
,
regs
,
0
,
regs_to_trapnr
(
regs
),
SIGILL
)
if
(
notify_die
(
DIE_RI
,
"RI Fault"
,
regs
,
0
,
regs_to_trapnr
(
regs
),
==
NOTIFY_STOP
)
SIGILL
)
==
NOTIFY_STOP
)
goto
out
;
goto
out
;
die_if_kernel
(
"Reserved instruction in kernel code"
,
regs
);
die_if_kernel
(
"Reserved instruction in kernel code"
,
regs
);
...
...
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