Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
bf941d6c
Commit
bf941d6c
authored
Feb 13, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Log faulting vaddr when bogus kernel PC detected.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
6c0f402f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
arch/sparc64/mm/fault.c
arch/sparc64/mm/fault.c
+3
-2
No files found.
arch/sparc64/mm/fault.c
View file @
bf941d6c
...
@@ -91,12 +91,13 @@ static void __kprobes unhandled_fault(unsigned long address,
...
@@ -91,12 +91,13 @@ static void __kprobes unhandled_fault(unsigned long address,
die_if_kernel
(
"Oops"
,
regs
);
die_if_kernel
(
"Oops"
,
regs
);
}
}
static
void
bad_kernel_pc
(
struct
pt_regs
*
regs
)
static
void
bad_kernel_pc
(
struct
pt_regs
*
regs
,
unsigned
long
vaddr
)
{
{
unsigned
long
*
ksp
;
unsigned
long
*
ksp
;
printk
(
KERN_CRIT
"OOPS: Bogus kernel PC [%016lx] in fault handler
\n
"
,
printk
(
KERN_CRIT
"OOPS: Bogus kernel PC [%016lx] in fault handler
\n
"
,
regs
->
tpc
);
regs
->
tpc
);
printk
(
KERN_CRIT
"OOPS: Fault was to vaddr[%lx]
\n
"
,
vaddr
);
__asm__
(
"mov %%sp, %0"
:
"=r"
(
ksp
));
__asm__
(
"mov %%sp, %0"
:
"=r"
(
ksp
));
show_stack
(
current
,
ksp
);
show_stack
(
current
,
ksp
);
unhandled_fault
(
regs
->
tpc
,
current
,
regs
);
unhandled_fault
(
regs
->
tpc
,
current
,
regs
);
...
@@ -280,7 +281,7 @@ asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs)
...
@@ -280,7 +281,7 @@ asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs)
(
tpc
>=
MODULES_VADDR
&&
tpc
<
MODULES_END
))
{
(
tpc
>=
MODULES_VADDR
&&
tpc
<
MODULES_END
))
{
/* Valid, no problems... */
/* Valid, no problems... */
}
else
{
}
else
{
bad_kernel_pc
(
regs
);
bad_kernel_pc
(
regs
,
address
);
return
;
return
;
}
}
}
}
...
...
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