| /* SPDX-License-Identifier: GPL-2.0 */ |
| * 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 __LINUX_SPARC_PSR_H |
| #define __LINUX_SPARC_PSR_H |
| #include <uapi/asm/psr.h> |
| /* Get the %psr register. */ |
| static inline unsigned int get_psr(void) |
| static inline void put_psr(unsigned int new_psr) |
| /* Get the %fsr register. Be careful, make sure the floating point |
| * enable bit is set in the %psr when you execute this or you will |
| extern unsigned int fsr_storage; |
| static inline unsigned int get_fsr(void) |
| #endif /* !(__ASSEMBLY__) */ |
| #endif /* !(__LINUX_SPARC_PSR_H) */ |