diff options
author | Helge Deller <deller@gmx.de> | 2022-02-17 21:29:22 +0100 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-03-11 19:49:30 +0100 |
commit | 46b4016f7d3b1c16c5eefcdf16dd32e84f4dbb60 (patch) | |
tree | e5d477ed81830e43a28685edc904c270f3898d9e /arch/parisc | |
parent | b9f50eea4f277943842e82bc4d73f912a2f165c6 (diff) | |
download | linux-46b4016f7d3b1c16c5eefcdf16dd32e84f4dbb60.tar.bz2 |
parisc: Add defines for various space register
Provide defines for space registers (SR_KERNEL, SR_USER, ...) which
should be used instead of hardcoding the values.
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/include/asm/assembly.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/assembly.h b/arch/parisc/include/asm/assembly.h index 6369082c6c74..ea0cb318b13d 100644 --- a/arch/parisc/include/asm/assembly.h +++ b/arch/parisc/include/asm/assembly.h @@ -47,6 +47,12 @@ #define PRIV_USER 3 #define PRIV_KERNEL 0 +/* Space register used inside kernel */ +#define SR_KERNEL 0 +#define SR_TEMP1 1 +#define SR_TEMP2 2 +#define SR_USER 3 + #ifdef __ASSEMBLY__ #ifdef CONFIG_64BIT |