All of lore.kernel.org
 help / color / mirror / Atom feed
* COP2 unaligned -> SIGBUS
@ 2009-11-23  6:31 Mikael Starvik
  2009-11-23 11:38 ` Ralf Baechle
  0 siblings, 1 reply; 6+ messages in thread
From: Mikael Starvik @ 2009-11-23  6:31 UTC (permalink / raw)
  To: linux-mips

Since there are now at least two users of cop2 I propose the following:

Regards
/Mikael

Index: unaligned.c
===================================================================
RCS file: /usr/local/cvs/linux/os/linux-2.6/arch/mips/kernel/unaligned.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- unaligned.c	15 Jun 2009 16:00:57 -0000	1.12
+++ unaligned.c	23 Nov 2009 06:26:04 -0000	1.13
@@ -446,22 +446,15 @@
 	case ldc1_op:
 	case swc1_op:
 	case sdc1_op:
-		/*
-		 * I herewith declare: this does not happen.  So send SIGBUS.
-		 */
-		goto sigbus;
-
 	case lwc2_op:
 	case ldc2_op:
 	case swc2_op:
 	case sdc2_op:
 		/*
-		 * These are the coprocessor 2 load/stores.  The current
-		 * implementations don't use cp2 and cp2 should always be
-		 * disabled in c0_status.  So send SIGILL.
-                 * (No longer true: The Sony Praystation uses cp2 for
-                 * 3D matrix operations.  Dunno if that thingy has a MMU ...)
+		 * I herewith declare: this does not happen.  So send SIGBUS.
 		 */
+		goto sigbus;
+
 	default:
 		/*
 		 * Pheeee...  We encountered an yet unknown instruction or

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-24 22:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-23  6:31 COP2 unaligned -> SIGBUS Mikael Starvik
2009-11-23 11:38 ` Ralf Baechle
2009-11-23 11:56   ` Ralf Baechle
2009-11-24 18:17     ` Ralf Baechle
2009-11-24 18:40       ` SV: " Mikael Starvik
2009-11-24 22:12         ` Ralf Baechle

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.