summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2007-11-09 17:28:29 +0000
committermiod <miod@openbsd.org>2007-11-09 17:28:29 +0000
commita0f821b8c94c9c2652bf613fe1d8da96d0651756 (patch)
tree1cc3755fb5ec16da8622df5d846ae2d8d4948875
parentOn MULTIPROCESSOR kernels, don't forget to grab the kernel lock when (diff)
downloadwireguard-openbsd-a0f821b8c94c9c2652bf613fe1d8da96d0651756.tar.xz
wireguard-openbsd-a0f821b8c94c9c2652bf613fe1d8da96d0651756.zip
Fix PSLTOIPL and IPLTOPSL to only use three bits of interrupt mask.
-rw-r--r--sys/arch/m68k/include/psl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/m68k/include/psl.h b/sys/arch/m68k/include/psl.h
index 1b22332635e..309f470622b 100644
--- a/sys/arch/m68k/include/psl.h
+++ b/sys/arch/m68k/include/psl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: psl.h,v 1.6 2007/05/16 19:37:06 thib Exp $ */
+/* $OpenBSD: psl.h,v 1.7 2007/11/09 17:28:29 miod Exp $ */
/* $NetBSD: psl.h,v 1.5 1994/10/26 07:50:50 cgd Exp $ */
/*
@@ -94,8 +94,8 @@ do { \
/*
* Convert PSL values to CPU IPLs and vice-versa.
*/
-#define PSLTOIPL(x) (((x) >> 8) & 0xf)
-#define IPLTOPSL(x) ((((x) & 0xf) << 8) | PSL_S)
+#define PSLTOIPL(x) (((x) >> 8) & 0x7)
+#define IPLTOPSL(x) ((((x) & 0x7) << 8) | PSL_S)
/*
* spl functions; all but spl0 are done in-line