Lines Matching refs:insns
30 static unsigned int *insns; variable
73 if (mprotect(insns, pgsize, PROT_READ | PROT_WRITE | PROT_EXEC)) { in segv_handler()
98 FAIL_IF(mprotect(insns, pgsize, rights) != 0); in check_exec_fault()
99 asm volatile("mtctr %0; bctrl" : : "r"(insns)); in check_exec_fault()
138 insns = (unsigned int *)mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in test()
140 FAIL_IF(insns == MAP_FAILED); in test()
144 insns[i] = PPC_INST_NOP; in test()
151 insns[0] = PPC_INST_TRAP; in test()
158 insns[numinsns - 1] = PPC_INST_BLR; in test()
164 fault_addr = insns; in test()
173 FAIL_IF(mprotect(insns, pgsize, PROT_EXEC) != 0); in test()
185 FAIL_IF(mprotect(insns, pgsize, PROT_EXEC) != 0); in test()
223 FAIL_IF(munmap((void *)insns, pgsize)); in test()