diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-11-09 17:28:30 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-11-09 17:28:30 +0000 |
commit | 0e63b28de578b1f7e6f6cc4940a3bfb8802cb07d (patch) | |
tree | ada5b74040053f4ebaca8be914335b5a4300b9e9 /sys | |
parent | a13a1c712b8588febaf4a3a2d4130559ff021001 (diff) |
Fix PSLTOIPL and IPLTOPSL to only use three bits of interrupt mask.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/m68k/include/psl.h | 6 |
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 |