diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2017-08-08 16:39:25 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-08-10 23:31:32 +1000 |
commit | d30a5a5262ca64d58aa07fb2ecd7f992df83b4bc (patch) | |
tree | 900c8c03dac7744c7b31d108fb410b298545a645 /arch/powerpc/include/asm/reg.h | |
parent | ccd3cd361341b71ae2afa596f6b470fcb32a916e (diff) | |
download | linux-stable-d30a5a5262ca64d58aa07fb2ecd7f992df83b4bc.tar.gz linux-stable-d30a5a5262ca64d58aa07fb2ecd7f992df83b4bc.tar.bz2 linux-stable-d30a5a5262ca64d58aa07fb2ecd7f992df83b4bc.zip |
powerpc/traps: Use SRR1 defines for program check reasons
Currently we open code the reason codes for program checks. Instead use
the existing SRR1 defines.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/reg.h')
-rw-r--r-- | arch/powerpc/include/asm/reg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h index 73be2f71dbbb..c0600e9e0ff5 100644 --- a/arch/powerpc/include/asm/reg.h +++ b/arch/powerpc/include/asm/reg.h @@ -724,6 +724,7 @@ * may not be recoverable */ #define SRR1_WS_DEEPER 0x00020000 /* Some resources not maintained */ #define SRR1_WS_DEEP 0x00010000 /* All resources maintained */ +#define SRR1_PROGTM 0x00200000 /* TM Bad Thing */ #define SRR1_PROGFPE 0x00100000 /* Floating Point Enabled */ #define SRR1_PROGILL 0x00080000 /* Illegal instruction */ #define SRR1_PROGPRIV 0x00040000 /* Privileged instruction */ |