Lines Matching refs:arch
44 #include <arch/cpu.h>
45 #include <arch/elf.h>
76 typedef uint32_t (*elf_fat_score_arch)(struct elf_image_arch *arch,
1808 // Find an arch that scores best with the provided score_record() function
1858 found_section->arch.osabi = elfHeader.e_ident[EI_OSABI];
1859 found_section->arch.osabi_version = elfHeader.e_ident[EI_ABIVERSION];
1860 found_section->arch.word_size = elfHeader.e_ident[EI_CLASS];
1861 found_section->arch.byte_order = elfHeader.e_ident[EI_DATA];
1863 found_section->arch.machine = B_LENDIAN_TO_HOST_INT32(
1866 found_section->arch.machine = B_BENDIAN_TO_HOST_INT32(
1873 if (score_arch(&found_section->arch, context) == 0) {
1923 found_section->arch = fat_arch;
1938 elf_score_best_fat_arch(struct elf_image_arch *arch, void *context)
1940 return arch_elf_score_image_arch(arch);
1952 elf_score_kernel_compatible_fat_arch(struct elf_image_arch *arch, void *context)
1955 // handling the request off to the arch-specific function to score
1959 if (!ELF_MACHINE_OK(arch->machine))
1962 return arch_elf_score_image_arch(arch);
1977 elf_score_best_compatible_fat_arch(struct elf_image_arch *arch,
1981 if (arch_elf_arch_compat(arch, image_arch) == false)
1984 return arch_elf_score_image_arch(arch);
2028 dprintf("could not find FATELF image for requested image arch\n");
2271 dprintf("could not find FATELF image for requested image arch\n");