Skip to content

Commit

Permalink
parisc: Add defines for various space register
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Helge Deller committed Mar 11, 2022
1 parent b9f50ee commit 46b4016
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/parisc/include/asm/assembly.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46b4016

Please sign in to comment.