Lines Matching refs:addr
74 static int (*mem_validate_func) (void *addr, size_t len);
75 static int msync_validate (void *addr, size_t len) in msync_validate() argument
77 return msync (addr, len, MS_ASYNC); in msync_validate()
81 static int mincore_validate (void *addr, size_t len) in mincore_validate() argument
84 return mincore (addr, len, mvec); in mincore_validate()
116 validate_mem (unw_word_t addr) in validate_mem() argument
121 if (PAGE_START(addr + sizeof (unw_word_t) - 1) == PAGE_START(addr)) in validate_mem()
126 addr = PAGE_START(addr); in validate_mem()
128 if (addr == 0) in validate_mem()
133 if (last_good_addr[i] && (addr == last_good_addr[i])) in validate_mem()
137 if (mem_validate_func ((void *) addr, len) == -1) in validate_mem()
143 last_good_addr[victim++] = addr; in validate_mem()
150 last_good_addr[victim] = addr; in validate_mem()
158 access_mem (unw_addr_space_t as, unw_word_t addr, unw_word_t *val, int write, in access_mem() argument
165 if (map_local_is_writable (addr)) in access_mem()
168 Debug (16, "mem[%016lx] <- %lx\n", addr, *val); in access_mem()
169 *(unw_word_t *) addr = *val; in access_mem()
174 Debug (16, "Unwritable memory mem[%016lx] <- %lx\n", addr, *val); in access_mem()
185 && unlikely (validate_mem (addr))) in access_mem()
190 if (map_local_is_readable (addr)) in access_mem()
193 *val = *(unw_word_t *) addr; in access_mem()
194 Debug (16, "mem[%016lx] -> %lx\n", addr, *val); in access_mem()
199 Debug (16, "Unreadable memory mem[%016lx] -> XXX\n", addr); in access_mem()
212 unw_word_t *addr; in access_reg() local
218 if (!(addr = x86_64_r_uc_addr (uc, reg))) in access_reg()
223 *(unw_word_t *) addr = *val; in access_reg()
228 *val = *(unw_word_t *) addr; in access_reg()
243 unw_fpreg_t *addr; in access_fpreg() local
248 if (!(addr = x86_64_r_uc_addr (uc, reg))) in access_fpreg()
255 *(unw_fpreg_t *) addr = *val; in access_fpreg()
259 *val = *(unw_fpreg_t *) addr; in access_fpreg()
280 access_mem_unrestricted (unw_addr_space_t as, unw_word_t addr, unw_word_t *val, in access_mem_unrestricted() argument
286 *val = *(unw_word_t *) addr; in access_mem_unrestricted()
287 Debug (16, "mem[%016lx] -> %lx\n", addr, *val); in access_mem_unrestricted()