Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
cac4bcbc
Commit
cac4bcbc
authored
18 years ago
by
Ralf Baechle
Browse files
Options
Downloads
Patches
Plain Diff
[MIPS] Print more information if we're struck by a machine check exception.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
722ace9d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/mips/kernel/traps.c
+17
-2
17 additions, 2 deletions
arch/mips/kernel/traps.c
with
17 additions
and
2 deletions
arch/mips/kernel/traps.c
+
17
−
2
View file @
cac4bcbc
...
@@ -819,15 +819,30 @@ asmlinkage void do_watch(struct pt_regs *regs)
...
@@ -819,15 +819,30 @@ asmlinkage void do_watch(struct pt_regs *regs)
asmlinkage
void
do_mcheck
(
struct
pt_regs
*
regs
)
asmlinkage
void
do_mcheck
(
struct
pt_regs
*
regs
)
{
{
const
int
field
=
2
*
sizeof
(
unsigned
long
);
int
multi_match
=
regs
->
cp0_status
&
ST0_TS
;
show_regs
(
regs
);
show_regs
(
regs
);
dump_tlb_all
();
if
(
multi_match
)
{
printk
(
"Index : %0x
\n
"
,
read_c0_index
());
printk
(
"Pagemask: %0x
\n
"
,
read_c0_pagemask
());
printk
(
"EntryHi : %0*lx
\n
"
,
field
,
read_c0_entryhi
());
printk
(
"EntryLo0: %0*lx
\n
"
,
field
,
read_c0_entrylo0
());
printk
(
"EntryLo1: %0*lx
\n
"
,
field
,
read_c0_entrylo1
());
printk
(
"
\n
"
);
dump_tlb_all
();
}
show_code
((
unsigned
int
*
)
regs
->
cp0_epc
);
/*
/*
* Some chips may have other causes of machine check (e.g. SB1
* Some chips may have other causes of machine check (e.g. SB1
* graduation timer)
* graduation timer)
*/
*/
panic
(
"Caught Machine Check exception - %scaused by multiple "
panic
(
"Caught Machine Check exception - %scaused by multiple "
"matching entries in the TLB."
,
"matching entries in the TLB."
,
(
regs
->
cp0_status
&
ST0_TS
)
?
""
:
"not "
);
(
multi_match
)
?
""
:
"not "
);
}
}
asmlinkage
void
do_mt
(
struct
pt_regs
*
regs
)
asmlinkage
void
do_mt
(
struct
pt_regs
*
regs
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment