Searched refs:pkey1 (Results 1 – 2 of 2) sorted by relevance
/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-pkey.c | 73 int pkey1, pkey2, pkey3; in child() local 82 pkey1 = sys_pkey_alloc(0, PKEY_DISABLE_EXECUTE); in child() 83 if (pkey1 < 0) { in child() 84 pkey1 = sys_pkey_alloc(0, 0); in child() 85 CHILD_FAIL_IF(pkey1 < 0, &info->child_sync); in child() 96 info->amr1 |= 3ul << pkeyshift(pkey1); in child() 108 info->expected_iamr |= 1ul << pkeyshift(pkey1); in child() 110 info->expected_iamr &= ~(1ul << pkeyshift(pkey1)); in child() 122 info->invalid_iamr = info->expected_iamr | (1ul << pkeyshift(pkey1) | 1ul << pkeyshift(pkey2)); in child() 123 info->invalid_uamor = info->expected_uamor & ~(0x3ul << pkeyshift(pkey1)); in child() [all …]
|
D | core-pkey.c | 113 int pkey1, pkey2, pkey3; in child() local 125 pkey1 = sys_pkey_alloc(0, PKEY_DISABLE_EXECUTE); in child() 126 if (pkey1 < 0) { in child() 127 pkey1 = sys_pkey_alloc(0, 0); in child() 128 FAIL_IF(pkey1 < 0); in child() 139 info->amr |= 3ul << pkeyshift(pkey1) | 2ul << pkeyshift(pkey2); in child() 142 info->iamr |= 1ul << pkeyshift(pkey1); in child() 144 info->iamr &= ~(1ul << pkeyshift(pkey1)); in child() 148 info->uamor |= 3ul << pkeyshift(pkey1) | 3ul << pkeyshift(pkey2); in child() 151 user_write, info->amr, pkey1, pkey2, pkey3); in child()
|