diff options
author | Christoph Hellwig <hch@lst.de> | 2018-01-04 18:35:03 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2018-01-07 15:14:39 -0800 |
commit | 1125203c13b9da32125e171b4bd75e93d4918ddd (patch) | |
tree | b7fec011a68452c8d65526dad46fedda9056e511 /arch/riscv/include/asm/ptrace.h | |
parent | c163fb38ca34694b0cce99bb5604257bc29bf200 (diff) |
riscv: rename SR_* constants to match the spec
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/include/asm/ptrace.h')
-rw-r--r-- | arch/riscv/include/asm/ptrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/ptrace.h b/arch/riscv/include/asm/ptrace.h index 93b8956e25e4..2c5df945d43c 100644 --- a/arch/riscv/include/asm/ptrace.h +++ b/arch/riscv/include/asm/ptrace.h @@ -66,7 +66,7 @@ struct pt_regs { #define REG_FMT "%08lx" #endif -#define user_mode(regs) (((regs)->sstatus & SR_PS) == 0) +#define user_mode(regs) (((regs)->sstatus & SR_SPP) == 0) /* Helpers for working with the instruction pointer */ |