* [PATCH]: read_c0_* return always a long
@ 2002-12-19 11:03 Juan Quintela
0 siblings, 0 replies; only message in thread
From: Juan Quintela @ 2002-12-19 11:03 UTC (permalink / raw)
To: Ralf Baechle, linux mips mailing list
Hi
this function returns a long, nuke a call to read_c0_errorepc
and use right types for variables and printks.
Later, Juan.
Index: arch/mips/kernel/traps.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/traps.c,v
retrieving revision 1.99.2.38
diff -u -r1.99.2.38 traps.c
--- arch/mips/kernel/traps.c 17 Dec 2002 23:41:01 -0000 1.99.2.38
+++ arch/mips/kernel/traps.c 19 Dec 2002 10:17:47 -0000
@@ -781,14 +781,14 @@
asmlinkage void cache_parity_error(void)
{
- unsigned int reg_val;
+ unsigned long reg_val;
/* For the moment, report the problem and hang. */
reg_val = read_c0_errorepc();
printk("Cache error exception:\n");
- printk("cp0_errorepc == %08x\n", read_c0_errorepc());
+ printk("cp0_errorepc == %08lx\n", reg_val);
reg_val = read_c0_cacheerr();
- printk("c0_cacheerr == %08x\n", reg_val);
+ printk("c0_cacheerr == %08lx\n", reg_val);
printk("Decoded c0_cacheerr: %s cache fault in %s reference.\n",
reg_val & (1<<30) ? "secondary" : "primary",
--
In theory, practice and theory are the same, but in practice they
are different -- Larry McVoy
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-19 10:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-19 11:03 [PATCH]: read_c0_* return always a long Juan Quintela
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.