forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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