From 0b7d5ddc147e1e37473d44327d44c7f056de1cc9 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 31 Jul 2005 15:37:52 +0000 Subject: Fix KDFAULT() in the 68040 & non-68040 compilation case. --- sys/arch/mac68k/mac68k/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/mac68k/mac68k/trap.c b/sys/arch/mac68k/mac68k/trap.c index f01f9a67df9..5b313ae4982 100644 --- a/sys/arch/mac68k/mac68k/trap.c +++ b/sys/arch/mac68k/mac68k/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.43 2004/12/08 20:35:34 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.44 2005/07/31 15:37:51 miod Exp $ */ /* $NetBSD: trap.c,v 1.68 1998/12/22 08:47:07 scottr Exp $ */ /* @@ -119,7 +119,7 @@ short exframesize[] = { #ifdef M68040 #define KDFAULT(c) (mmutype == MMU_68040 ? \ ((c) & SSW4_TMMASK) == SSW4_TMKD : \ - ((c) & (SSW_DF|FC_SUPERD)) == (SSW_DF|FC_SUPERD)) + ((c) & (SSW_DF|SSW_FCMASK)) == (SSW_DF|FC_SUPERD)) #define WRFAULT(c) (mmutype == MMU_68040 ? \ ((c) & SSW4_RW) == 0 : \ ((c) & (SSW_DF|SSW_RW)) == SSW_DF) -- cgit v1.2.3