From 1f7256e7dddef49acf9f6c9fe3f93522a8a2a4c2 Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Thu, 24 May 2018 23:11:44 -0300 Subject: 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 [mpe: Simplify make rule] Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/include/reg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/testing/selftests/powerpc/include/reg.h') 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 -- cgit v1.2.3-59-g8ed1b