kernel/tools/testing/selftests/powerpc/ptrace/core-pkey.c
.. .. @@ -150,7 +150,7 @@ 150 150 printf("%-30s AMR: %016lx pkey1: %d pkey2: %d pkey3: %d\n", 151 151 user_write, info->amr, pkey1, pkey2, pkey3); 152 152 153 - mtspr(SPRN_AMR, info->amr);153 + set_amr(info->amr);154 154 155 155 /* 156 156 * We won't use pkey3. This tests whether the kernel restores the UAMOR