diff options
author | Thiago Jung Bauermann <bauerman@linux.ibm.com> | 2018-05-24 23:11:44 -0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-05-28 18:46:35 +1000 |
commit | 1f7256e7dddef49acf9f6c9fe3f93522a8a2a4c2 (patch) | |
tree | bc12ecd181faefb0160cbd59a1edeb4ee096b84d /tools/testing/selftests/powerpc/include | |
parent | powerpc/modules: remove unused mod_arch_specific.toc field (diff) | |
download | linux-dev-1f7256e7dddef49acf9f6c9fe3f93522a8a2a4c2.tar.xz linux-dev-1f7256e7dddef49acf9f6c9fe3f93522a8a2a4c2.zip |
selftests/powerpc: Add ptrace tests for Protection Key registers
This test exercises read and write access to the AMR, IAMR and UAMOR.
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
[mpe: Simplify make rule]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/include')
-rw-r--r-- | tools/testing/selftests/powerpc/include/reg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/include/reg.h b/tools/testing/selftests/powerpc/include/reg.h index 4afdebcce4cd..7f348c059bc2 100644 --- a/tools/testing/selftests/powerpc/include/reg.h +++ b/tools/testing/selftests/powerpc/include/reg.h @@ -54,6 +54,7 @@ #define SPRN_DSCR_PRIV 0x11 /* Privilege State DSCR */ #define SPRN_DSCR 0x03 /* Data Stream Control Register */ #define SPRN_PPR 896 /* Program Priority Register */ +#define SPRN_AMR 13 /* Authority Mask Register - problem state */ /* TEXASR register bits */ #define TEXASR_FC 0xFE00000000000000 |