linux-mips
[Top] [All Lists]

[PATCH] MIPS: Add printing of ES bit when cache error occurs.

To: <linux-mips@linux-mips.org>
Subject: [PATCH] MIPS: Add printing of ES bit when cache error occurs.
From: Markos Chandras <markos.chandras@imgtec.com>
Date: Mon, 7 Oct 2013 10:25:52 +0100
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
From: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>

Print out the source of request that caused the error (ES bit) when
a cache error exception occurs.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Acked-by: Markos Chandras <markos.chandras@imgtec.com>
---
 arch/mips/kernel/traps.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 08aae2a..840bfcb 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1421,9 +1421,10 @@ asmlinkage void cache_parity_error(void)
        printk("Decoded c0_cacheerr: %s cache fault in %s reference.\n",
               reg_val & (1<<30) ? "secondary" : "primary",
               reg_val & (1<<31) ? "data" : "insn");
-       printk("Error bits: %s%s%s%s%s%s%s\n",
+       printk("Error bits: %s%s%s%s%s%s%s%s\n",
               reg_val & (1<<29) ? "ED " : "",
               reg_val & (1<<28) ? "ET " : "",
+              reg_val & (1<<27) ? "ES " : "",
               reg_val & (1<<26) ? "EE " : "",
               reg_val & (1<<25) ? "EB " : "",
               reg_val & (1<<24) ? "EI " : "",
-- 
1.8.3.2



<Prev in Thread] Current Thread [Next in Thread>