/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * psr.h: This file holds the macros for masking off various parts of * the processor status register on the Sparc. This is valid * for Version 8. On the V9 this is renamed to the PSTATE * register and its members are accessed as fields like * PSTATE.PRIV for the current CPU privilege level. * * Copyright (C) 1994 David S. Miller (davem@caip.rutgers.edu) */ #ifndef _UAPI__LINUX_SPARC_PSR_H #define _UAPI__LINUX_SPARC_PSR_H /* The Sparc PSR fields are laid out as the following: * * ------------------------------------------------------------------------ * | impl | vers | icc | resv | EC | EF | PIL | S | PS | ET | CWP | * | 31-28 | 27-24 | 23-20 | 19-14 | 13 | 12 | 11-8 | 7 | 6 | 5 | 4-0 | * ------------------------------------------------------------------------ */ #define PSR_CWP 0x0000001f /* current window pointer */ #define PSR_ET 0x00000020 /* enable traps field */ #define PSR_PS 0x00000040 /* previous privilege level */ #define PSR_S 0x00000080 /* current privilege level */ #define PSR_PIL 0x00000f00 /* processor interrupt level */ #define PSR_EF 0x00001000 /* enable floating point */ #define PSR_EC 0x00002000 /* enable co-processor */ #define PSR_SYSCALL 0x00004000 /* inside of a syscall */ #define PSR_LE 0x00008000 /* SuperSparcII little-endian */ #define PSR_ICC 0x00f00000 /* integer condition codes */ #define PSR_C 0x00100000 /* carry bit */ #define PSR_V 0x00200000 /* overflow bit */ #define PSR_Z 0x00400000 /* zero bit */ #define PSR_N 0x00800000 /* negative bit */ #define PSR_VERS 0x0f000000 /* cpu-version field */ #define PSR_IMPL 0xf0000000 /* cpu-implementation field */ #define PSR_VERS_SHIFT 24 #define PSR_IMPL_SHIFT 28 #define PSR_VERS_SHIFTED_MASK 0xf #define PSR_IMPL_SHIFTED_MASK 0xf #define PSR_IMPL_TI 0x4 #define PSR_IMPL_LEON 0xf #endif /* _UAPI__LINUX_SPARC_PSR_H */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Kbuild | File | 122 B | 0644 |
|
apc.h | File | 1.7 KB | 0644 |
|
asi.h | File | 14.73 KB | 0644 |
|
auxvec.h | File | 153 B | 0644 |
|
bitsperlong.h | File | 324 B | 0644 |
|
byteorder.h | File | 191 B | 0644 |
|
display7seg.h | File | 1.9 KB | 0644 |
|
envctrl.h | File | 3.41 KB | 0644 |
|
errno.h | File | 5.41 KB | 0644 |
|
fbio.h | File | 7.72 KB | 0644 |
|
fcntl.h | File | 1.75 KB | 0644 |
|
ioctl.h | File | 2.58 KB | 0644 |
|
ioctls.h | File | 5.87 KB | 0644 |
|
ipcbuf.h | File | 776 B | 0644 |
|
jsflash.h | File | 928 B | 0644 |
|
kvm_para.h | File | 97 B | 0644 |
|
mman.h | File | 1.22 KB | 0644 |
|
msgbuf.h | File | 1.12 KB | 0644 |
|
openpromio.h | File | 2.13 KB | 0644 |
|
param.h | File | 253 B | 0644 |
|
perfctr.h | File | 5.56 KB | 0644 |
|
poll.h | File | 273 B | 0644 |
|
posix_types.h | File | 1.48 KB | 0644 |
|
psr.h | File | 2.21 KB | 0644 |
|
psrcompat.h | File | 2.02 KB | 0644 |
|
pstate.h | File | 5.81 KB | 0644 |
|
ptrace.h | File | 8.03 KB | 0644 |
|
resource.h | File | 770 B | 0644 |
|
sembuf.h | File | 877 B | 0644 |
|
setup.h | File | 310 B | 0644 |
|
shmbuf.h | File | 1.3 KB | 0644 |
|
sigcontext.h | File | 167 B | 0644 |
|
siginfo.h | File | 670 B | 0644 |
|
signal.h | File | 4.62 KB | 0644 |
|
socket.h | File | 2.44 KB | 0644 |
|
sockios.h | File | 435 B | 0644 |
|
stat.h | File | 1.97 KB | 0644 |
|
statfs.h | File | 164 B | 0644 |
|
swab.h | File | 1.01 KB | 0644 |
|
termbits.h | File | 6.92 KB | 0644 |
|
termios.h | File | 742 B | 0644 |
|
traps.h | File | 5.15 KB | 0644 |
|
uctx.h | File | 1.39 KB | 0644 |
|
unistd.h | File | 25.3 KB | 0644 |
|
utrap.h | File | 1.5 KB | 0644 |
|
watchdog.h | File | 1 KB | 0644 |
|