|
|
1.1 ! root 1: /* @(#)psl.h 1.1 86/02/03 SMI */ ! 2: ! 3: /* ! 4: * Copyright (c) 1985 by Sun Microsystems, Inc. ! 5: */ ! 6: ! 7: /* ! 8: * Definition of bits in the 68020 status register (SR) ! 9: * We always use the 68020 interrupt stack because the ! 10: * pain of fixing up the master stack when returning ! 11: * off the interrupt stack is too high. ! 12: */ ! 13: #define SR_T1 0x8000 /* trace on any intruction */ ! 14: #define SR_T0 0x4000 /* trace on change flow */ ! 15: #define SR_SMODE 0x2000 /* system mode */ ! 16: #define SR_MASTER 0x1000 /* master mode (non-interrupt) */ ! 17: #define SR_INTPRI 0x0700 /* interrupt priority bits */ ! 18: #define SR_CC 0x001F /* all condition code bits */ ! 19: ! 20: /* Handy values for SR */ ! 21: #define SR_HIGH 0x2700 /* supervisor (interrupt) high pri */ ! 22: #define SR_LOW 0x2000 /* supervisor (interrupt) low pri */ ! 23: #define SR_USER 0x0000 /* user, low priority */ ! 24: #define SR_USERCLR 0xFF00 /* system bits */ ! 25: #define SR_TRACE SR_T1 /* trace mode mask - use T1 (any) */ ! 26: ! 27: ! 28: #define PSL_USERSET SR_USER /* must set for user */ ! 29: #define PSL_USERCLR SR_USERCLR /* must clear for user */ ! 30: #define PSL_ALLCC SR_CC /* condition code bits */ ! 31: #define PSL_T SR_TRACE /* trace bit */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.