/* 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> #ifndef __ASSEMBLY__ /* Get the %psr register. */
static inline unsigned int get_psr(void) { unsigned int psr; __asm__ __volatile__( "rd %%psr, %0\n\t" "nop\n\t" "nop\n\t" "nop\n\t" : "=r" (psr) : /* no inputs */ : "memory"); return psr; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 20 | 90.91% | 3 | 75.00% |
Adrian Bunk | 2 | 9.09% | 1 | 25.00% |
Total | 22 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 14 | 87.50% | 5 | 83.33% |
Adrian Bunk | 2 | 12.50% | 1 | 16.67% |
Total | 16 | 100.00% | 6 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 20 | 90.91% | 2 | 66.67% |
Adrian Bunk | 2 | 9.09% | 1 | 33.33% |
Total | 22 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Linus Torvalds (pre-git) | 76 | 87.36% | 6 | 60.00% |
Adrian Bunk | 7 | 8.05% | 2 | 20.00% |
David Howells | 3 | 3.45% | 1 | 10.00% |
Greg Kroah-Hartman | 1 | 1.15% | 1 | 10.00% |
Total | 87 | 100.00% | 10 | 100.00% |