1: /*
2: * Copyright (c) 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)psl.h 1.1 (2.10BSD Berkeley) 12/1/86
7: */
8:
9: /*
10: * PDP program status longword
11: */
12:
13: #define PSL_C 0x00000001 /* carry bit */
14: #define PSL_V 0x00000002 /* overflow bit */
15: #define PSL_Z 0x00000004 /* zero bit */
16: #define PSL_N 0x00000008 /* negative bit */
17: #define PSL_ALLCC 0x0000000f /* all cc bits - unlikely */
18: #define PSL_T 0x00000010 /* trace enable bit */
19: #define PSL_IPL 0x000000e0 /* interrupt priority level */
20: #define PSL_PRVMOD 0x00003000 /* previous mode (all on is user) */
21: #define PSL_CURMOD 0x0000c000 /* current mode (all on is user) */
22: #define PSL_CURSUP 0x00004000 /* current supervisor previous kernel */
23: #define PSL_BR0 0x00000000 /* bus request level 0 */
24: #define PSL_BR1 0x00000020 /* bus request level 1 */
25: #define PSL_BR2 0x00000040 /* bus request level 2 */
26: #define PSL_BR3 0x00000060 /* bus request level 3 */
27: #define PSL_BR4 0x00000080 /* bus request level 4 */
28: #define PSL_BR5 0x000000a0 /* bus request level 5 */
29: #define PSL_BR6 0x000000c0 /* bus request level 6 */
30: #define PSL_BR7 0x000000e0 /* bus request level 7 */
31:
32: #define PSL_USERSET (PSL_PRVMOD|PSL_CURMOD)
33: #define PSL_USERCLR PSL_IPL /* must be clear in user mode */
Defined macros
PSL_C
defined in line
13; used 2 times
PSL_N
defined in line
16;
never used
PSL_T
defined in line
18; used 4 times
PSL_V
defined in line
14;
never used
PSL_Z
defined in line
15;
never used
Usage of this include