To: linux-m68k@lists.linux-m68k.org
Subject: L68K: Fix for PROT_NONE handling on '060
X-Yow: YUGGA-HUGGA-BUGGA-TUGGA!!  HEY-HEY!!  A TRAIN STATION!!  No, a POST
 OFFICE!!  An OCEAN LINER!!  No, I think it's a CAFETERIA!!!
From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Date: 24 Nov 1997 10:24:25 +0100
Sender: owner-linux-m68k@phil.uni-sb.de

Hi!

Since the 68060 distinguishes a supervisor protection from other access
faults in the fslw the access_error060 function must be updated to handle
this.  (As you may guess, i have just received the '060 manual (-: )

Andreas.

--- linux/arch/m68k/kernel/traps.c.~1~	Thu Sep 18 17:44:22 1997
+++ linux/arch/m68k/kernel/traps.c	Fri Nov 21 22:10:06 1997
@@ -206,7 +206,7 @@
 			return;
 	}
 
-	if (fslw & (MMU060_DESC_ERR | MMU060_WP)) {
+	if (fslw & (MMU060_DESC_ERR | MMU060_WP | MMU060_SP)) {
 		unsigned long errorcode;
 		unsigned long addr = fp->un.fmt4.effaddr;
 		errorcode = ((fslw & MMU060_WP) ? 1 : 0) |
