Lines Matching refs:insns
28 static unsigned int *insns; variable
62 if (mprotect(insns, pgsize, PROT_READ | PROT_WRITE)) { in segv_handler()
84 if (mprotect(insns, pgsize, PROT_EXEC)) { in segv_handler()
131 insns = (unsigned int *) mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in test()
133 FAIL_IF(insns == MAP_FAILED); in test()
137 insns[i] = PPC_INST_NOP; in test()
144 insns[0] = PPC_INST_TRAP; in test()
151 insns[numinsns - 1] = PPC_INST_BLR; in test()
162 fault_addr = insns; in test()
179 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
196 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
216 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
233 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
270 FAIL_IF(sys_pkey_mprotect(insns, pgsize, PROT_EXEC, pkey) != 0); in test()
273 asm volatile("mtctr %0; bctrl" : : "r"(insns)); in test()
286 munmap((void *) insns, pgsize); in test()