Home
last modified time | relevance | path

Searched refs:cputype (Results 1 – 25 of 36) sorted by relevance

12

/xnu-11215/tools/lldbmacros/usertaskdebugging/
H A Duserprocess.py16 def GetRegisterSetForCPU(cputype, subtype): argument
17 if cputype == CPU_TYPE_ARM64:
19 elif cputype == CPU_TYPE_ARM64_32:
21 elif cputype == CPU_TYPE_ARM:
23 elif cputype == CPU_TYPE_I386:
25 elif cputype == CPU_TYPE_X86_64:
43 if cputype == CPU_TYPE_X86_64:
46 if cputype == CPU_TYPE_ARM64:
50 if cputype == CPU_TYPE_I386:
53 if cputype == CPU_TYPE_ARM:
[all …]
H A Dtarget.py19 def __init__(self, cputype, cpusubtype, ptrsize): argument
22 'cputype': cputype, 'cpusubtype': cpusubtype,
30 if (cputype & 0xc) != 0xc:
/xnu-11215/bsd/kern/
H A Dmach_fat.c100 testtype = OSSwapBigToHostInt32(arch->cputype); in fatfile_getarch()
130 validate_potential_simulator_binary(OSSwapBigToHostInt32(best_arch->cputype), in fatfile_getarch()
143 archret->cputype = in fatfile_getarch()
144 OSSwapBigToHostInt32(best_arch->cputype); in fatfile_getarch()
184 cpu_type_t cputype, in fatfile_getbestarch_for_cputype() argument
194 return fatfile_getarch(data_ptr, data_size, cputype, 0, cpusubtype, imgp, archret); in fatfile_getbestarch_for_cputype()
271 uint32_t i_cputype = OSSwapBigToHostInt32(arches[i].cputype); in fatfile_validate_fatarches()
293 uint32_t j_cputype = OSSwapBigToHostInt32(arches[j].cputype); in fatfile_validate_fatarches()
H A Dmach_loader.c190 cpu_type_t cputype,
845 if (!grade_binary(header->cputype, in parse_machfile()
1294 header->cputype, in parse_machfile()
2885 cpu_type_t cputype, in load_dylinker() argument
2970 cputype = (cputype & CPU_ARCH_MASK) | (cpu_type() & ~CPU_ARCH_MASK); in load_dylinker()
3317 .csb_cpu_type = cputype, in load_code_signature()
3378 cputype, in load_code_signature()
3432 cpu_type_t cputype, in set_code_unprotect() argument
3492 .cputype = cputype, in set_code_unprotect()
3596 cpu_type_t cputype, in get_macho_vnode() argument
[all …]
H A Dmach_fat.h40 load_return_t fatfile_getbestarch_for_cputype(cpu_type_t cputype, cpu_subtype_t cpusubtype,
H A Dkern_mman.c1769 cpu_type_t cputype; in mremap_encrypted() local
1785 cputype = uap->cputype; in mremap_encrypted()
1848 __FUNCTION__, vpath, cryptid, cputype, cpusubtype, (uint64_t)user_addr, (uint64_t)user_size); in mremap_encrypted()
1860 .cputype = cputype, in mremap_encrypted()
H A Dkern_exit.c485 cpu_type_t cputype; in populate_corpse_crashinfo() local
603 cputype = cpu_type() & ~CPU_ARCH_MASK; in populate_corpse_crashinfo()
605 cputype |= CPU_ARCH_ABI64; in populate_corpse_crashinfo()
607 cputype |= CPU_ARCH_ABI64_32; in populate_corpse_crashinfo()
611 kcdata_memcpy(crash_info_ptr, uaddr, &cputype, sizeof(cpu_type_t)); in populate_corpse_crashinfo()
1200 cpu_type_t cputype = cpu_type() & ~CPU_ARCH_MASK; in current_thread_collect_backtrace_info() local
1202 cputype |= CPU_ARCH_ABI64; in current_thread_collect_backtrace_info()
1204 cputype |= CPU_ARCH_ABI64_32; in current_thread_collect_backtrace_info()
1206 kcdata_memcpy(kcdata, kaddr, &cputype, sizeof(cpu_type_t)); in current_thread_collect_backtrace_info()
H A Dkern_core.c549 mh64->cputype = process_cpu_type(core_proc); in coredump()
557 mh->cputype = process_cpu_type(core_proc); in coredump()
/xnu-11215/libkern/kxld/
H A Dkxld_object.c88 cpu_type_t cputype; member
265 object->cputype, in kxld_object_init_from_macho()
425 if (cputype) { in get_target_machine_info()
426 object->cputype = cputype; in get_target_machine_info()
429 object->cputype = host_arch->cputype; in get_target_machine_info()
432 switch (object->cputype) { in get_target_machine_info()
455 switch (object->cputype) { in get_target_machine_info()
554 require_action(object->cputype == mach_hdr->cputype, finish, in get_macho_slice_for_arch()
1735 object->cputype = 0;
2135 mach->cputype = object->cputype;
[all …]
H A Dkxld.c71 cpu_type_t cputype; member
123 KXLDFlags flags, cpu_type_t cputype, cpu_subtype_t cpusubtype, in kxld_create_context() argument
145 context->cputype = cputype; in kxld_create_context()
175 context->section_order = kxld_dict_find(s_order_dict, &cputype); in kxld_create_context()
190 *cputype_p = cputype; in kxld_create_context()
577 context->section_order, context->cputype, context->cpusubtype, context->flags); in get_object_for_file()
H A Dkxld_reloc.h92 cpu_type_t cputype, cpu_subtype_t cpusubtype, boolean_t swap)
H A Dkxld_object.h58 cpu_type_t cputype, cpu_subtype_t cpusubtype, KXLDFlags flags)
H A Dkxld_util.c801 kxld_is_32_bit(cpu_type_t cputype) in kxld_is_32_bit() argument
803 return !(cputype & CPU_ARCH_ABI64); in kxld_is_32_bit()
H A Dkxld_reloc.c210 const KXLDSymtab *symtab, const KXLDArray *sectarray, cpu_type_t cputype, in kxld_relocator_init() argument
217 switch (cputype) { in kxld_relocator_init()
266 kKxldLogArchNotSupported, cputype); in kxld_relocator_init()
273 relocator->is_32_bit = kxld_is_32_bit(cputype); in kxld_relocator_init()
/xnu-11215/tools/tests/execperf/
H A Dprintexecinfo.c38 …const NXArchInfo *arch = NXGetArchInfoFromCpuType(_mh_execute_header.cputype, _mh_execute_header.c… in printexecinfo()
42 _mh_execute_header.cputype, in printexecinfo()
/xnu-11215/tests/
H A Dmacho_size_63133398.c3197 fat_arch->cputype = (cpu_type_t)htonl(mach_header->cputype);
/xnu-11215/osfmk/vm/
H A Dvm_shared_region.c209 cpu_type_t cputype,
353 if (cputype == CPU_TYPE_ARM64 && in match_subtype()
372 cpu_type_t cputype, in vm_shared_region_lookup() argument
421 cputype, in vm_shared_region_lookup()
667 cpu_type_t cputype, in vm_shared_region_create() argument
703 switch (cputype) { in vm_shared_region_create()
728 cputype)); in vm_shared_region_create()
734 switch (cputype) { in vm_shared_region_create()
759 cputype)); in vm_shared_region_create()
777 if (cputype == CPU_TYPE_ARM64 && in vm_shared_region_create()
[all …]
/xnu-11215/EXTERNAL_HEADERS/mach-o/
H A Dfat.h57 cpu_type_t cputype; /* cpu specifier (int) */ member
H A Dloader.h56 cpu_type_t cputype; /* cpu specifier */ member
74 cpu_type_t cputype; /* cpu specifier */ member
/xnu-11215/libkern/libkern/
H A Dmkext.h85 cpu_type_t cputype; \
102 #define MKEXT_GET_CPUTYPE(hdr) (MKEXT_SWAP(MKEXT_HDR_CAST(hdr)->cputype))
H A Dkxld.h60 cpu_type_t cputype,
/xnu-11215/osfmk/kern/
H A Dpage_decrypt.h69 cpu_type_t cputype; member
/xnu-11215/SETUP/kextsymboltool/
H A Dkextsymboltool.c733 if (CPU_ARCH_ABI64 & target_arch->cputype) { in main()
738 hdr.cputype = target_arch->cputype; in main()
776 hdr.cputype = target_arch->cputype; in main()
855 if (CPU_ARCH_ABI64 & target_arch->cputype) { in main()
/xnu-11215/tools/kt-dump/
H A Dkt-dump.cpp408 cpu = OSSwapInt32(hdr->cputype); in slice()
411 cpu = hdr->cputype; in slice()
529 if (hdr->cputype != CPU_TYPE_ARM64) { in do_fileset()
/xnu-11215/osfmk/kdp/
H A Dprocessor_core.c282 _mh_execute_header.magic, _mh_execute_header.cputype, _mh_execute_header.cpusubtype) == NULL) { in kern_register_xnu_coredump_helper()
294 _mh_execute_header.cputype, _mh_execute_header.cpusubtype) == NULL) { in kern_register_sk_coredump_helper()
492 core_header.cputype = core_context->core_cpu_type; in coredump_save_summary()
514 core_header.cputype = core_context->core_cpu_type; in coredump_save_summary()

12