| /xnu-10063.141.1/tests/vm/ |
| H A D | vm_allocation.c | 325 #define MACH_VM_ADDRESS_T(address) (*((mach_vm_address_t *)(uintptr_t)(address))) 327 static int vm_address_size = sizeof(mach_vm_address_t); 397 typedef kern_return_t (*allocate_fn_t)(vm_map_t, mach_vm_address_t *, mach_vm_size_t, int); 403 static mach_vm_address_t fixed_vm_address = 0x0; 407 void assert_deallocate_success(mach_vm_address_t address, mach_vm_size_t size); 413 check_fixed_address(mach_vm_address_t *address, mach_vm_size_t size) in check_fixed_address() 425 wrapper_mach_vm_allocate(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_allocate() 432 wrapper_mach_vm_map(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map() 441 wrapper_mach_vm_map_4kB(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map_4kB() 449 wrapper_mach_vm_map_2MB(vm_map_t map, mach_vm_address_t * address, mach_vm_size_t size, int flags) in wrapper_mach_vm_map_2MB() [all …]
|
| H A D | vm_ranges.c | 101 static mach_vm_address_t 102 assert_allocate(mach_vm_address_t dst, int vm_flags) in assert_allocate() 137 assert_allocate_eq(mach_vm_address_t dst, int vm_flags) in assert_allocate_eq() 139 mach_vm_address_t target = dst; in assert_allocate_eq() 147 static mach_vm_address_t 148 assert_allocate_in_range(int target_range, mach_vm_address_t dst, int vm_flags) in assert_allocate_in_range() 257 mach_vm_address_t addr; in ensure_rogue_fixed_fails() 337 mach_vm_address_t target = range.min_address - ALLOCATION_SIZE; 348 mach_vm_address_t target = range.max_address - 100 * ALLOCATION_SIZE; 352 T_EXPECT_EQ((mach_vm_address_t)dst, target, "unexpected allocation address"); [all …]
|
| H A D | vm_user.c | 44 static mach_vm_address_t 48 mach_vm_address_t addr; in get_permanent_mapping() 75 mach_vm_address_t addr, addr2; 104 mach_vm_address_t addr; 131 mach_vm_address_t addr, remap_addr, addr2; 167 mach_vm_address_t addr;
|
| H A D | vm_reclaim.c | 63 …gbuffer, unsigned char val, mach_vm_reclaim_behavior_v1_t behavior, mach_vm_address_t *addr /* OUT… in allocate_and_defer_free() 80 …ize, mach_vm_reclaim_ringbuffer_v1_t ringbuffer, unsigned char val, mach_vm_address_t *addr /* OUT… in allocate_and_defer_deallocate() 90 mach_vm_address_t addr; 145 check_buffer(mach_vm_address_t addr, size_t size, unsigned char expected) in check_buffer() 160 read_buffer(mach_vm_address_t addr, size_t size) in read_buffer() 174 assert_buffer_has_changed_and_crash(mach_vm_address_t addr, size_t size, unsigned char expected) in assert_buffer_has_changed_and_crash() 198 mach_vm_address_t addr; in reuse_reclaimed_entry() 260 mach_vm_address_t addr = 0; in allocate_and_suspend() 283 kr = mach_vm_deallocate(mach_task_self(), (mach_vm_address_t) ringbuffer.buffer, buffer_size); in allocate_and_suspend() 465 mach_vm_address_t addr = 0; [all …]
|
| /xnu-10063.141.1/bsd/kern/ |
| H A D | mach_loader.h | 74 mach_vm_address_t all_image_info_addr; 94 mach_vm_address_t min_vm_addr; 95 mach_vm_address_t max_vm_addr; 96 mach_vm_address_t ro_vm_start; 97 mach_vm_address_t ro_vm_end; 110 mach_vm_address_t dynlinker_ro_vm_start; 111 mach_vm_address_t dynlinker_ro_vm_end;
|
| /xnu-10063.141.1/tools/tests/superpages/ |
| H A D | testsp.c | 60 check_addr0(mach_vm_address_t addr, char *fn) in check_addr0() 70 check_addr(mach_vm_address_t addr1, mach_vm_address_t addr2, char *fn) in check_addr() 80 check_align(mach_vm_address_t addr) in check_align() 90 check_r(mach_vm_address_t addr, mach_vm_size_t size, int *res) in check_r() 113 check_nr(mach_vm_address_t addr, mach_vm_size_t size, int *res) in check_nr() 127 check_w(mach_vm_address_t addr, mach_vm_size_t size) in check_w() 145 check_nw(mach_vm_address_t addr, mach_vm_size_t size) in check_nw() 160 check_rw(mach_vm_address_t addr, mach_vm_size_t size) in check_rw() 178 mach_vm_address_t global_addr = 0; 252 mach_vm_address_t addr = 0; in test_allocate_size_any() [all …]
|
| /xnu-10063.141.1/osfmk/kern/ |
| H A D | kern_cdata.h | 84 mach_vm_address_t kcd_cd_totalout_addr; 85 mach_vm_address_t kcd_cd_totalin_addr; 120 mach_vm_address_t kcd_addr_begin; 121 mach_vm_address_t kcd_addr_end; 141 kcdata_descriptor_t kcdata_memory_alloc_init(mach_vm_address_t crash_data_p, unsigned data_type, un… 143 …kcdata_descriptor_t data, mach_vm_address_t buffer_addr_p, unsigned data_type, unsigned size, unsi… 187 kern_return_t kcdata_memcpy(kcdata_descriptor_t data, mach_vm_address_t dst_addr, const void * src_… 188 kern_return_t kcdata_bzero(kcdata_descriptor_t data, mach_vm_address_t dst_addr, uint32_t size); 189 …memory_addr(kcdata_descriptor_t data, uint32_t type, uint32_t size, mach_vm_address_t * user_addr); 191 …uint32_t type_of_element, uint32_t size_of_element, uint32_t count, mach_vm_address_t * user_addr);
|
| H A D | kern_cdata.c | 42 …ata_descriptor_t data, uint32_t type, uint32_t size, uint64_t flags, mach_vm_address_t *user_addr); 306 kcdata_memory_alloc_init(mach_vm_address_t buffer_addr_p, unsigned data_type, unsigned size, unsign… in kcdata_memory_alloc_init() 309 mach_vm_address_t user_addr = 0; in kcdata_memory_alloc_init() 329 kcdata_memory_static_init(kcdata_descriptor_t data, mach_vm_address_t buffer_addr_p, unsigned data_… in kcdata_memory_static_init() 331 mach_vm_address_t user_addr = 0; in kcdata_memory_static_init() 351 mach_vm_address_t curend = data->kcd_addr_begin + data->kcd_length; in kcdata_endalloc() 367 mach_vm_address_t curend = data->kcd_addr_begin + data->kcd_length; in kcdata_release_endallocs() 470 …y_f)(void *, const void *, size_t), uint64_t type, mach_vm_address_t totalout_addr, mach_vm_addres… in kcdata_init_compress_state() 528 mach_vm_address_t user_addr, totalout_addr, totalin_addr; in kcdata_init_compress() 804 …data->kcd_addr_end = (mach_vm_address_t) space_start + (total_uncompressed_size - total_uncompress… in kcdata_compress_chunk_with_flags() [all …]
|
| /xnu-10063.141.1/tests/ |
| H A D | kernel_inspection.c | 103 (mach_vm_address_t)(uintptr_t)threads, in attempt_kernel_inspection() 117 (mach_vm_address_t)(uintptr_t)table, in attempt_kernel_inspection() 122 (mach_vm_address_t)(uintptr_t)tree, in attempt_kernel_inspection() 138 …mach_vm_address_t addr = 0x10000000; /* can be whatever, the call should fail before getting to VM… in attempt_kernel_inspection() 140 kr = mach_vm_read(task, (mach_vm_address_t)addr, 8, &data, &cnt); in attempt_kernel_inspection() 183 (mach_vm_address_t)(uintptr_t)tasks, 195 (mach_vm_address_t)(uintptr_t)tasks, 202 (mach_vm_address_t)(uintptr_t)psets,
|
| H A D | os_thread_self_restrict_pagers.c | 336 mach_vm_address_t addr = 0; in pager_test() 383 (mach_vm_address_t)state, in pager_test() 404 (mach_vm_address_t *)©_state, in pager_test() 409 (mach_vm_address_t)state, in pager_test() 434 (mach_vm_address_t)state, in pager_test() 446 (mach_vm_address_t *)©_state, in pager_test() 484 mach_vm_behavior_set(mach_task_self(), (mach_vm_address_t)state, PAGE_SIZE, VM_BEHAVIOR_PAGEOUT); in pager_test() 500 kr = vm_protect(mach_task_self(), (mach_vm_address_t)state, PAGE_SIZE, FALSE, VM_PROT_DEFAULT); in pager_test()
|
| /xnu-10063.141.1/libsyscall/mach/ |
| H A D | mach_vm.c | 49 mach_vm_address_t *address, in mach_vm_allocate() 72 mach_vm_address_t address, in mach_vm_deallocate() 93 mach_vm_address_t address, in mach_vm_protect() 119 mach_vm_address_t mach_addr; in vm_allocate() 121 mach_addr = (mach_vm_address_t)*address; in vm_allocate() 163 mach_vm_address_t *address, in mach_vm_map() 199 mach_vm_address_t *address, in mach_vm_remap() 204 mach_vm_address_t src_address, in mach_vm_remap() 228 mach_vm_address_t *address, in mach_vm_remap_new() 233 mach_vm_address_t src_address, in mach_vm_remap_new() [all …]
|
| H A D | vm_reclaim.c | 83 construct_entry(mach_vm_address_t start_addr, uint32_t size, mach_vm_reclaim_behavior_v1_t behavior) in construct_entry() 104 kr = mach_vm_map(mach_task_self(), (mach_vm_address_t *)&ring_buffer->buffer, in mach_vm_reclaim_ringbuffer_init() 112 (mach_vm_address_t)ring_buffer->buffer, buffer_size); in mach_vm_reclaim_ringbuffer_init() 115 mach_vm_deallocate(mach_task_self(), (mach_vm_address_t)ring_buffer->buffer, in mach_vm_reclaim_ringbuffer_init() 125 mach_vm_reclaim_ringbuffer_v1_t ring_buffer, mach_vm_address_t start_addr, uint32_t size, in mach_vm_reclaim_mark_free() 166 mach_vm_address_t start_addr, uint32_t size) in mach_vm_reclaim_mark_used()
|
| /xnu-10063.141.1/osfmk/mach/ |
| H A D | mach_vm.defs | 109 inout address : mach_vm_address_t; 120 inout address : mach_vm_address_t; 136 address : mach_vm_address_t; 146 address : mach_vm_address_t; 165 address : mach_vm_address_t; 179 address : mach_vm_address_t; 201 address : mach_vm_address_t; 218 address : mach_vm_address_t; 248 address : mach_vm_address_t; 267 source_address : mach_vm_address_t; [all …]
|
| H A D | exclaves.h | 122 mach_vm_address_t msg_buffer, mach_vm_size_t size, exclaves_tag_t *tag, 189 mach_vm_address_t dst_buffer, mach_vm_size_t size1, mach_vm_size_t offset1, 258 mach_vm_address_t src_buffer, mach_vm_size_t size1, mach_vm_size_t offset1, 315 mach_vm_address_t src_buffer, mach_vm_size_t size, mach_vm_size_t offset); 342 mach_vm_address_t dst_buffer, mach_vm_size_t size, mach_vm_size_t offset); 433 mach_vm_address_t dst_buffer, mach_vm_size_t size1, mach_vm_size_t offset1, 910 exclaves_id_t identifier, mach_vm_address_t buffer, mach_vm_size_t size,
|
| /xnu-10063.141.1/iokit/IOKit/ |
| H A D | IOBufferMemoryDescriptor.h | 103 mach_vm_address_t alignment, 104 mach_vm_address_t physicalMask); 119 mach_vm_address_t alignment, 120 mach_vm_address_t physicalMask); 189 mach_vm_address_t source, 268 mach_vm_address_t physicalMask);
|
| /xnu-10063.141.1/bsd/tests/ |
| H A D | bsd_tests.c | 154 kern_return_t xnupost_copyout_test(xnupost_test_t t, mach_vm_address_t outaddr); 157 xnupost_copyout_test(xnupost_test_t t, mach_vm_address_t outaddr) in xnupost_copyout_test() 226 mach_vm_address_t user_addr = 0; in xnupost_export_testdata() 227 mach_vm_address_t tmp_entry_addr = 0; in xnupost_export_testdata() 246 …kret = kcdata_memory_static_init(&kcd, (mach_vm_address_t)outp, KCDATA_BUFFER_BEGIN_XNUPOST_CONFIG… in xnupost_export_testdata() 283 tmp_entry_addr = (mach_vm_address_t)((uint64_t)(user_addr) + (uint64_t)(i * elem_size)); in xnupost_export_testdata() 287 user_addr = (mach_vm_address_t)((uint64_t)(user_addr) + (uint64_t)(i * elem_size)); in xnupost_export_testdata() 290 tmp_entry_addr = (mach_vm_address_t)((uint64_t)(user_addr) + (uint64_t)(i * elem_size)); in xnupost_export_testdata()
|
| /xnu-10063.141.1/iokit/Kernel/ |
| H A D | IOBufferMemoryDescriptor.cpp | 116 mach_vm_address_t physicalMask = 0; in initWithOptions() 126 mach_vm_address_t source, in withCopy() 180 mach_vm_address_t alignment, in initWithPhysicalMask() 181 mach_vm_address_t physicalMask) in initWithPhysicalMask() 185 mach_vm_address_t highestMask = 0; in initWithPhysicalMask() 414 _ranges.v64->address = (mach_vm_address_t) pgz_decode(_buffer, _capacity); in initWithPhysicalMask() 451 mach_vm_address_t buffer = reserved->map->getAddress(); in initWithPhysicalMask() 468 mach_vm_address_t alignment, in initControlWithPhysicalMask() 469 mach_vm_address_t physicalMask) in initControlWithPhysicalMask() 491 (mach_vm_address_t)0); in initWithGuardPages() [all …]
|
| H A D | IOLib.cpp | 436 mach_vm_address_t allocationStart, in IOMallocAlignedSetHdr() 437 mach_vm_address_t alignedStart) in IOMallocAlignedSetHdr() 455 mach_vm_address_t alignedStart, in IOMallocAlignedHdrCorruptionPanic() 458 mach_vm_address_t address = 0; in IOMallocAlignedHdrCorruptionPanic() 459 mach_vm_address_t recalAlignedStart = 0; in IOMallocAlignedHdrCorruptionPanic() 483 static __header_always_inline mach_vm_address_t 486 mach_vm_address_t alignedStart, in IOMallocAlignedGetAddress() 489 mach_vm_address_t address = 0; in IOMallocAlignedGetAddress() 490 mach_vm_address_t recalAlignedStart = 0; in IOMallocAlignedGetAddress() 624 (mach_vm_address_t)address, &adjustedSize); in IOFreeAligned_internal() [all …]
|
| /xnu-10063.141.1/tests/vm_memory_tests_src/ |
| H A D | common.c | 57 …kr = mach_vm_allocate(mach_task_self(), (mach_vm_address_t *)buffer, (mach_vm_size_t)sb.st_size, V… in mach_server_data_setup() 64 mach_server_data_cleanup(void *buffer, mach_vm_address_t src, mach_vm_size_t size) in mach_server_data_cleanup() 71 mach_vm_deallocate(mach_task_self(), (mach_vm_address_t)buffer, (mach_vm_size_t)sb.st_size); in mach_server_data_cleanup() 96 mach_vm_address_t src, in mach_server_contruct_payload() 120 mach_server_create_allocation(mach_vm_address_t *src, mach_vm_size_t size, void *buffer) in mach_server_create_allocation() 125 mach_vm_address_t localsrc = 0; in mach_server_create_allocation()
|
| H A D | mach_vm_tests.h | 55 void mach_server_data_cleanup(void *, mach_vm_address_t, mach_vm_size_t); 57 void mach_server_create_allocation(mach_vm_address_t *, mach_vm_size_t, void *); 58 void mach_server_contruct_payload(ipc_message_t *, mach_vm_address_t, mach_port_t, mach_vm_size_t, …
|
| /xnu-10063.141.1/libsyscall/wrappers/ |
| H A D | exclaves.c | 46 mach_vm_address_t msg_buffer, mach_vm_size_t size, exclaves_tag_t *tag, in exclaves_endpoint_call() 80 mach_vm_address_t dst_buffer, mach_vm_size_t size1, mach_vm_size_t offset1, in exclaves_outbound_buffer_copyout() 100 mach_vm_address_t src_buffer, mach_vm_size_t size1, mach_vm_size_t offset1, in exclaves_inbound_buffer_copyin() 146 mach_vm_address_t src_buffer, mach_vm_size_t size, mach_vm_size_t offset) in exclaves_named_buffer_copyin() 155 mach_vm_address_t dst_buffer, mach_vm_size_t size, mach_vm_size_t offset) in exclaves_named_buffer_copyout() 187 (mach_vm_address_t)&conclave_resource_user, size, 0, 0); in exclaves_lookup_service() 212 mach_vm_address_t dst_buffer, in exclaves_audio_buffer_copyout() 272 (mach_vm_address_t)¬ification_resource_user, in exclaves_notification_create()
|
| /xnu-10063.141.1/osfmk/arm64/ |
| H A D | alternate_debugger.c | 73 static mach_vm_address_t alt_code; 75 static mach_vm_address_t alt_pages; 79 typedef void (*t_call_altdbg_fn)(mach_vm_size_t size, mach_vm_address_t pages, mach_vm_size_t pages… 82 extern void alternate_debugger_just_return(__unused mach_vm_size_t size, __unused mach_vm_address_t…
|
| /xnu-10063.141.1/osfmk/mach/arm/ |
| H A D | vm_types.h | 107 typedef uint64_t mach_vm_address_t __kernel_ptr_semantics; 131 typedef uint32_t mach_vm_address_t; typedef 135 typedef uint64_t mach_vm_address_t __kernel_ptr_semantics;
|
| /xnu-10063.141.1/bsd/skywalk/channel/ |
| H A D | os_channel_private.h | 488 mach_vm_address_t cinfo_mem_base; /* VM mapping for task */ 574 const mach_vm_address_t chrd_shmem_base_addr; 575 const mach_vm_address_t chrd_def_buf_base_addr; 576 const mach_vm_address_t chrd_large_buf_base_addr; 577 const mach_vm_address_t chrd_md_base_addr; 578 const mach_vm_address_t chrd_sd_base_addr; 579 const mach_vm_address_t chrd_bft_base_addr;
|
| /xnu-10063.141.1/iokit/IOKit/skywalk/ |
| H A D | IOSkywalkSupport.h | 94 mach_vm_address_t * kvaddr ); 103 mach_vm_address_t * mapAddr, 107 mach_vm_address_t * mapAddr, 157 mach_vm_address_t * address, mach_vm_size_t * size );
|