Lines Matching defs:addr2
67 check_addr(mach_vm_address_t addr1, mach_vm_address_t addr2, char *fn) {
68 if (addr1 != addr2) {
69 sprintf(error, "%s() returned address %llx instead of %llx", fn, addr1, addr2);
325 mach_vm_address_t addr = 0, addr2;
335 addr2 = addr + i*PAGE_SIZE;
337 kr = mach_vm_allocate(mach_task_self(), &addr2, size, 0);
505 mach_vm_address_t addr2 = 0;
516 kr = mach_vm_allocate(mach_task_self(), &addr2, size, VM_FLAGS_ANYWHERE);
531 if ((bytes = read(fd, (void*)(uintptr_t)addr2, SUPERPAGE_SIZE)) < SUPERPAGE_SIZE) {
538 if (memcmp((void*)(uintptr_t)addr1, (void*)(uintptr_t)addr2, bytes)) {
545 kr = mach_vm_deallocate(mach_task_self(), addr2, size);