1*41474Smckusick /* 2*41474Smckusick * Copyright (c) 1982, 1986 Regents of the University of California. 3*41474Smckusick * All rights reserved. 4*41474Smckusick * 5*41474Smckusick * %sccs.include.redist.c% 6*41474Smckusick * 7*41474Smckusick * @(#)psl.h 7.1 (Berkeley) 05/08/90 8*41474Smckusick */ 9*41474Smckusick 10*41474Smckusick /* 11*41474Smckusick * MC68000 program status word 12*41474Smckusick */ 13*41474Smckusick 14*41474Smckusick #define PSL_C 0x0001 /* carry bit */ 15*41474Smckusick #define PSL_V 0x0002 /* overflow bit */ 16*41474Smckusick #define PSL_Z 0x0004 /* zero bit */ 17*41474Smckusick #define PSL_N 0x0008 /* negative bit */ 18*41474Smckusick #define PSL_X 0x0010 /* extend bit */ 19*41474Smckusick #define PSL_ALLCC 0x001F /* all cc bits - unlikely */ 20*41474Smckusick #define PSL_IPL0 0x0000 /* interrupt priority level 0 */ 21*41474Smckusick #define PSL_IPL1 0x0100 /* interrupt priority level 1 */ 22*41474Smckusick #define PSL_IPL2 0x0200 /* interrupt priority level 2 */ 23*41474Smckusick #define PSL_IPL3 0x0300 /* interrupt priority level 3 */ 24*41474Smckusick #define PSL_IPL4 0x0400 /* interrupt priority level 4 */ 25*41474Smckusick #define PSL_IPL5 0x0500 /* interrupt priority level 5 */ 26*41474Smckusick #define PSL_IPL6 0x0600 /* interrupt priority level 6 */ 27*41474Smckusick #define PSL_IPL7 0x0700 /* interrupt priority level 7 */ 28*41474Smckusick #define PSL_S 0x2000 /* supervisor enable bit */ 29*41474Smckusick #define PSL_T 0x8000 /* trace enable bit */ 30*41474Smckusick 31*41474Smckusick #define PSL_LOWIPL (PSL_S) 32*41474Smckusick #define PSL_HIGHIPL (PSL_S | PSL_IPL7) 33*41474Smckusick #define PSL_IPL (PSL_IPL7) 34*41474Smckusick #define PSL_USER (0) 35*41474Smckusick 36*41474Smckusick #define PSL_MBZ 0x58E0 /* must be zero bits */ 37*41474Smckusick 38*41474Smckusick #define PSL_USERSET (0) 39*41474Smckusick #define PSL_USERCLR (PSL_S | PSL_IPL7 | PSL_MBZ) 40