forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/tools/testing/selftests/powerpc/ptrace/core-pkey.c
....@@ -150,7 +150,7 @@
150150 printf("%-30s AMR: %016lx pkey1: %d pkey2: %d pkey3: %d\n",
151151 user_write, info->amr, pkey1, pkey2, pkey3);
152152
153
- mtspr(SPRN_AMR, info->amr);
153
+ set_amr(info->amr);
154154
155155 /*
156156 * We won't use pkey3. This tests whether the kernel restores the UAMOR