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
2d495ebc
Commit
2d495ebc
authored
Aug 04, 2010
by
Jesper Nilsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CRIS: Always dump registers for segfaulting process.
Signed-off-by:
Jesper Nilsson
<
jesper.nilsson@axis.com
>
parent
b4e8a181
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
arch/cris/mm/fault.c
arch/cris/mm/fault.c
+6
-0
No files found.
arch/cris/mm/fault.c
View file @
2d495ebc
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
extern
int
find_fixup_code
(
struct
pt_regs
*
);
extern
int
find_fixup_code
(
struct
pt_regs
*
);
extern
void
die_if_kernel
(
const
char
*
,
struct
pt_regs
*
,
long
);
extern
void
die_if_kernel
(
const
char
*
,
struct
pt_regs
*
,
long
);
extern
void
show_registers
(
struct
pt_regs
*
regs
);
/* debug of low-level TLB reload */
/* debug of low-level TLB reload */
#undef DEBUG
#undef DEBUG
...
@@ -195,6 +196,11 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
...
@@ -195,6 +196,11 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
"address %08lx at pc %08lx
\n
"
,
"address %08lx at pc %08lx
\n
"
,
tsk
->
comm
,
tsk
->
pid
,
tsk
->
comm
,
tsk
->
pid
,
address
,
instruction_pointer
(
regs
));
address
,
instruction_pointer
(
regs
));
/* With DPG on, we've already dumped registers above. */
DPG
(
if
(
0
))
show_registers
(
regs
);
#ifdef CONFIG_NO_SEGFAULT_TERMINATION
#ifdef CONFIG_NO_SEGFAULT_TERMINATION
DECLARE_WAIT_QUEUE_HEAD
(
wq
);
DECLARE_WAIT_QUEUE_HEAD
(
wq
);
wait_event_interruptible
(
wq
,
0
==
1
);
wait_event_interruptible
(
wq
,
0
==
1
);
...
...
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