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
3b2396d9
Commit
3b2396d9
authored
Jun 22, 2005
by
Maciej W. Rozycki
Committed by
Ralf Baechle
Oct 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use correct names for bits in the R3k cp0.status register.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
e20368d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
26 deletions
+41
-26
arch/mips/kernel/traps.c
arch/mips/kernel/traps.c
+41
-26
No files found.
arch/mips/kernel/traps.c
View file @
3b2396d9
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* Copyright (C) 1999 Silicon Graphics, Inc.
* Copyright (C) 1999 Silicon Graphics, Inc.
* Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com
* Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com
* Copyright (C) 2000, 01 MIPS Technologies, Inc.
* Copyright (C) 2000, 01 MIPS Technologies, Inc.
* Copyright (C) 2002, 2003, 2004 Maciej W. Rozycki
* Copyright (C) 2002, 2003, 2004
, 2005
Maciej W. Rozycki
*/
*/
#include <linux/config.h>
#include <linux/config.h>
#include <linux/init.h>
#include <linux/init.h>
...
@@ -203,32 +203,47 @@ void show_regs(struct pt_regs *regs)
...
@@ -203,32 +203,47 @@ void show_regs(struct pt_regs *regs)
printk
(
"Status: %08x "
,
(
uint32_t
)
regs
->
cp0_status
);
printk
(
"Status: %08x "
,
(
uint32_t
)
regs
->
cp0_status
);
if
(
regs
->
cp0_status
&
ST0_KX
)
if
(
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_I
)
{
printk
(
"KX "
);
if
(
regs
->
cp0_status
&
ST0_KUO
)
if
(
regs
->
cp0_status
&
ST0_SX
)
printk
(
"KUo "
);
printk
(
"SX "
);
if
(
regs
->
cp0_status
&
ST0_IEO
)
if
(
regs
->
cp0_status
&
ST0_UX
)
printk
(
"IEo "
);
printk
(
"UX "
);
if
(
regs
->
cp0_status
&
ST0_KUP
)
switch
(
regs
->
cp0_status
&
ST0_KSU
)
{
printk
(
"KUp "
);
case
KSU_USER
:
if
(
regs
->
cp0_status
&
ST0_IEP
)
printk
(
"USER "
);
printk
(
"IEp "
);
break
;
if
(
regs
->
cp0_status
&
ST0_KUC
)
case
KSU_SUPERVISOR
:
printk
(
"KUc "
);
printk
(
"SUPERVISOR "
);
if
(
regs
->
cp0_status
&
ST0_IEC
)
break
;
printk
(
"IEc "
);
case
KSU_KERNEL
:
}
else
{
printk
(
"KERNEL "
);
if
(
regs
->
cp0_status
&
ST0_KX
)
break
;
printk
(
"KX "
);
default:
if
(
regs
->
cp0_status
&
ST0_SX
)
printk
(
"BAD_MODE "
);
printk
(
"SX "
);
break
;
if
(
regs
->
cp0_status
&
ST0_UX
)
printk
(
"UX "
);
switch
(
regs
->
cp0_status
&
ST0_KSU
)
{
case
KSU_USER
:
printk
(
"USER "
);
break
;
case
KSU_SUPERVISOR
:
printk
(
"SUPERVISOR "
);
break
;
case
KSU_KERNEL
:
printk
(
"KERNEL "
);
break
;
default:
printk
(
"BAD_MODE "
);
break
;
}
if
(
regs
->
cp0_status
&
ST0_ERL
)
printk
(
"ERL "
);
if
(
regs
->
cp0_status
&
ST0_EXL
)
printk
(
"EXL "
);
if
(
regs
->
cp0_status
&
ST0_IE
)
printk
(
"IE "
);
}
}
if
(
regs
->
cp0_status
&
ST0_ERL
)
printk
(
"ERL "
);
if
(
regs
->
cp0_status
&
ST0_EXL
)
printk
(
"EXL "
);
if
(
regs
->
cp0_status
&
ST0_IE
)
printk
(
"IE "
);
printk
(
"
\n
"
);
printk
(
"
\n
"
);
printk
(
"Cause : %08x
\n
"
,
cause
);
printk
(
"Cause : %08x
\n
"
,
cause
);
...
...
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