/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _PARISC_PSW_H
#define _PARISC_PSW_H
#define PSW_I 0 x00000001
#define PSW_D 0 x00000002
#define PSW_P 0 x00000004
#define PSW_Q 0 x00000008
#define PSW_R 0 x00000010
#define PSW_F 0 x00000020
#define PSW_G 0 x00000040 /* PA1.x only */
#define PSW_O 0 x00000080 /* PA2.0 only */
/* ssm/rsm instructions number PSW_W and PSW_E differently */
#define PSW_SM_I PSW_I /* Enable External Interrupts */
#define PSW_SM_D PSW_D
#define PSW_SM_P PSW_P
#define PSW_SM_Q PSW_Q /* Enable Interrupt State Collection */
#define PSW_SM_R PSW_R /* Enable Recover Counter Trap */
#define PSW_SM_W 0 x200 /* PA2.0 only : Enable Wide Mode */
#define PSW_SM_QUIET PSW_SM_R+PSW_SM_Q+PSW_SM_P+PSW_SM_D+PSW_SM_I
#define PSW_CB 0 x0000ff00
#define PSW_M 0 x00010000
#define PSW_V 0 x00020000
#define PSW_C 0 x00040000
#define PSW_B 0 x00080000
#define PSW_X 0 x00100000
#define PSW_N 0 x00200000
#define PSW_L 0 x00400000
#define PSW_H 0 x00800000
#define PSW_T 0 x01000000
#define PSW_S 0 x02000000
#define PSW_E 0 x04000000
#define PSW_W 0 x08000000 /* PA2.0 only */
#define PSW_W_BIT 36 /* PA2.0 only */
#define PSW_Z 0 x40000000 /* PA1.x only */
#define PSW_Y 0 x80000000 /* PA1.x only */
#ifdef CONFIG_64BIT
# define PSW_HI_CB 0 x000000ff /* PA2.0 only */
#endif
#ifdef CONFIG_64BIT
# define USER_PSW_HI_MASK PSW_HI_CB
# define WIDE_PSW PSW_W
#else
# define WIDE_PSW 0
#endif
/* Used when setting up for rfi */
#define KERNEL_PSW (WIDE_PSW | PSW_C | PSW_Q | PSW_P | PSW_D)
#define REAL_MODE_PSW (WIDE_PSW | PSW_Q)
#define USER_PSW_MASK (WIDE_PSW | PSW_T | PSW_N | PSW_X | PSW_B | PSW_V | PSW_CB)
#define USER_PSW (PSW_C | PSW_Q | PSW_P | PSW_D | PSW_I)
#ifndef __ASSEMBLER__
/* The program status word as bitfields. */
struct pa_psw {
unsigned int y:1 ;
unsigned int z:1 ;
unsigned int rv:2 ;
unsigned int w:1 ;
unsigned int e:1 ;
unsigned int s:1 ;
unsigned int t:1 ;
unsigned int h:1 ;
unsigned int l:1 ;
unsigned int n:1 ;
unsigned int x:1 ;
unsigned int b:1 ;
unsigned int c:1 ;
unsigned int v:1 ;
unsigned int m:1 ;
unsigned int cb:8 ;
unsigned int o:1 ;
unsigned int g:1 ;
unsigned int f:1 ;
unsigned int r:1 ;
unsigned int q:1 ;
unsigned int p:1 ;
unsigned int d:1 ;
unsigned int i:1 ;
};
#ifdef CONFIG_64BIT
#define pa_psw(task) ((struct pa_psw *) ((char *) (task) + TASK_PT_PSW + 4 ))
#else
#define pa_psw(task) ((struct pa_psw *) ((char *) (task) + TASK_PT_PSW))
#endif
#endif /* !__ASSEMBLER__ */
#endif
Messung V0.5 in Prozent C=97 H=94 G=95
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-06)
¤
*© Formatika GbR, Deutschland