Lines Matching refs:base
93 unsigned int *base; member
100 unsigned int *base; in protect() local
105 base = ((struct region *) p)->base; in protect()
107 FAIL_IF_EXIT(!base); in protect()
130 FAIL_IF_EXIT(sys_pkey_mprotect(base, size, PROT_RWX, in protect()
143 unsigned int *base; in protect_access() local
147 base = ((struct region *) p)->base; in protect_access()
150 numinsns = size / sizeof(base[0]); in protect_access()
151 FAIL_IF_EXIT(!base); in protect_access()
161 base, base + numinsns); in protect_access()
175 FAIL_IF_EXIT(sys_pkey_mprotect(base, size, PROT_RWX, in protect_access()
179 fault_addr = base + (rand() % numinsns); in protect_access()
256 r.base = mmap(NULL, r.size, PROT_RWX, in test()
258 FAIL_IF(r.base == MAP_FAILED); in test()
264 numinsns = r.size / sizeof(r.base[0]); in test()
266 r.base[i] = PPC_INST_NOP; in test()
267 r.base[i] = PPC_INST_BLR; in test()
325 munmap(r.base, r.size); in test()