/qemu/hw/openrisc/ |
H A D | boot.c | 28 long kernel_size; in openrisc_load_kernel() local 34 kernel_size = load_elf(kernel_filename, NULL, NULL, NULL, in openrisc_load_kernel() 38 if (kernel_size < 0) { in openrisc_load_kernel() 39 kernel_size = load_uimage(kernel_filename, in openrisc_load_kernel() 41 high_addr = entry + kernel_size; in openrisc_load_kernel() 43 if (kernel_size < 0) { in openrisc_load_kernel() 44 kernel_size = load_image_targphys(kernel_filename, in openrisc_load_kernel() 47 high_addr = KERNEL_LOAD_ADDR + kernel_size; in openrisc_load_kernel() 54 if (kernel_size < 0) { in openrisc_load_kernel()
|
/qemu/hw/microblaze/ |
H A D | boot.c | 140 int kernel_size; in microblaze_load_kernel() local 145 kernel_size = load_elf(kernel_filename, NULL, NULL, NULL, in microblaze_load_kernel() 150 kernel_size = load_elf(kernel_filename, NULL, in microblaze_load_kernel() 159 if (kernel_size < 0) { in microblaze_load_kernel() 162 kernel_size = load_uimage(kernel_filename, &uentry, &loadaddr, 0, in microblaze_load_kernel() 165 high = (loadaddr + kernel_size + 3) & ~3; in microblaze_load_kernel() 169 if (kernel_size < 0) { in microblaze_load_kernel() 170 kernel_size = load_image_targphys(kernel_filename, ddr_base, in microblaze_load_kernel() 173 high = (ddr_base + kernel_size + 3) & ~3; in microblaze_load_kernel() 180 high = ROUND_UP(high + kernel_size, 4); in microblaze_load_kernel()
|
/qemu/hw/m68k/ |
H A D | an5206.c | 43 int kernel_size; in an5206_init() local 76 kernel_size = load_elf(kernel_filename, NULL, NULL, NULL, &elf_entry, in an5206_init() 79 if (kernel_size < 0) { in an5206_init() 80 kernel_size = load_uimage(kernel_filename, &entry, NULL, NULL, in an5206_init() 83 if (kernel_size < 0) { in an5206_init() 84 kernel_size = load_image_targphys(kernel_filename, KERNEL_LOAD_ADDR, in an5206_init() 88 if (kernel_size < 0) { in an5206_init()
|
H A D | mcf5208.c | 283 int kernel_size; in mcf5208evb_init() local 374 kernel_size = load_elf(kernel_filename, NULL, NULL, NULL, &elf_entry, in mcf5208evb_init() 377 if (kernel_size < 0) { in mcf5208evb_init() 378 kernel_size = load_uimage(kernel_filename, &entry, NULL, NULL, in mcf5208evb_init() 381 if (kernel_size < 0) { in mcf5208evb_init() 382 kernel_size = load_image_targphys(kernel_filename, 0x40000000, in mcf5208evb_init() 386 if (kernel_size < 0) { in mcf5208evb_init()
|
/qemu/hw/arm/ |
H A D | boot.c | 858 uint64_t kernel_size = 0; in load_aarch64_image() local 895 if (kernel_size != 0) { in load_aarch64_image() 918 if (kernel_size == 0) { in load_aarch64_image() 919 kernel_size = size; in load_aarch64_image() 927 return kernel_size; in load_aarch64_image() 936 ssize_t kernel_size; in arm_setup_direct_kernel_boot() local 980 if (kernel_size < 0) { in arm_setup_direct_kernel_boot() 984 if (kernel_size >= 0) { in arm_setup_direct_kernel_boot() 993 if (kernel_size >= 0) { in arm_setup_direct_kernel_boot() 1003 if (kernel_size >= 0) { in arm_setup_direct_kernel_boot() [all …]
|
/qemu/hw/i386/ |
H A D | x86-common.c | 587 int kernel_size; in load_elfboot() local 608 if (kernel_size < 0) { in load_elfboot() 633 int setup_size, kernel_size, cmdline_size; in x86_load_linux() local 659 kernel_size = get_file_size(f); in x86_load_linux() 660 if (!kernel_size || in x86_load_linux() 662 MIN(ARRAY_SIZE(header), kernel_size)) { in x86_load_linux() 892 if (setup_size > kernel_size) { in x86_load_linux() 896 kernel_size -= setup_size; in x86_load_linux() 899 kernel = g_malloc(kernel_size); in x86_load_linux() 905 if (fread(kernel, 1, kernel_size, f) != kernel_size) { in x86_load_linux() [all …]
|
/qemu/hw/ppc/ |
H A D | mac_oldworld.c | 99 int32_t kernel_size = 0, initrd_size = 0; in ppc_heathrow_init() local 162 kernel_size = load_elf(machine->kernel_filename, NULL, in ppc_heathrow_init() 165 if (kernel_size < 0) { in ppc_heathrow_init() 166 kernel_size = load_aout(machine->kernel_filename, kernel_base, in ppc_heathrow_init() 170 if (kernel_size < 0) { in ppc_heathrow_init() 171 kernel_size = load_image_targphys(machine->kernel_filename, in ppc_heathrow_init() 175 if (kernel_size < 0) { in ppc_heathrow_init() 182 initrd_base = TARGET_PAGE_ALIGN(kernel_base + kernel_size + in ppc_heathrow_init() 194 cmdline_base = TARGET_PAGE_ALIGN(kernel_base + kernel_size + KERNEL_GAP); in ppc_heathrow_init() 323 fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_SIZE, kernel_size); in ppc_heathrow_init()
|
H A D | virtex_ml507.c | 196 int kernel_size; in virtex_init() local 244 kernel_size = load_elf(kernel_filename, NULL, NULL, NULL, in virtex_init() 249 if (kernel_size < 0) { in virtex_init() 252 kernel_size = load_image_targphys(kernel_filename, in virtex_init() 256 high = boot_info.bootstrap_pc + kernel_size + 8192; in virtex_init() 259 boot_info.ima_size = kernel_size; in virtex_init()
|
H A D | mac_newworld.c | 144 long kernel_size = 0, initrd_size = 0; in ppc_core99_init() local 205 kernel_size = load_elf(machine->kernel_filename, NULL, in ppc_core99_init() 208 if (kernel_size < 0) { in ppc_core99_init() 209 kernel_size = load_aout(machine->kernel_filename, kernel_base, in ppc_core99_init() 213 if (kernel_size < 0) { in ppc_core99_init() 214 kernel_size = load_image_targphys(machine->kernel_filename, in ppc_core99_init() 218 if (kernel_size < 0) { in ppc_core99_init() 225 initrd_base = TARGET_PAGE_ALIGN(kernel_base + kernel_size + KERNEL_GAP); in ppc_core99_init() 236 cmdline_base = TARGET_PAGE_ALIGN(kernel_base + kernel_size + KERNEL_GAP); in ppc_core99_init() 481 fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_SIZE, kernel_size); in ppc_core99_init()
|
H A D | prep.c | 172 uint32_t kernel_image, uint32_t kernel_size, in PPC_NVRAM_set_params() argument 188 NVRAM_set_lword(nvram, 0x3C, kernel_size); in PPC_NVRAM_set_params() 244 long kernel_size = 0, initrd_size = 0; in ibm_40p_init() local 357 kernel_size = load_image_targphys(machine->kernel_filename, in ibm_40p_init() 360 if (kernel_size < 0) { in ibm_40p_init() 366 fw_cfg_add_i32(fw_cfg, FW_CFG_KERNEL_SIZE, kernel_size); in ibm_40p_init() 411 kernel_base, kernel_size, in ibm_40p_init()
|
H A D | e500.c | 370 hwaddr kernel_size, in ppce500_load_device_tree() argument 457 kernel_size >> 32, kernel_size); in ppce500_load_device_tree() 682 hwaddr kernel_size; member 705 hwaddr kernel_size) in ppce500_prep_device_tree() argument 713 p->kernel_size = kernel_size; in ppce500_prep_device_tree() 909 int kernel_size = 0; in ppce500_init() local 1214 kernel_size = payload_size; in ppce500_init() 1226 kernel_size = load_image_targphys(machine->kernel_filename, in ppce500_init() 1229 if (kernel_size < 0) { in ppce500_init() 1235 cur_base += kernel_size; in ppce500_init() [all …]
|
H A D | ppc405_boards.c | 224 int kernel_size; in boot_from_kernel() local 233 kernel_size = load_elf(machine->kernel_filename, NULL, NULL, NULL, in boot_from_kernel() 236 if (kernel_size < 0) { in boot_from_kernel() 238 machine->kernel_filename, load_elf_strerror(kernel_size)); in boot_from_kernel() 315 long kernel_size, initrd_size; in ppc405_init() local 318 kernel_size = load_image_targphys(kernel_filename, kernel_base, in ppc405_init() 320 if (kernel_size < 0) { in ppc405_init()
|
H A D | spapr_vof.c | 73 if (spapr->kernel_size && in spapr_vof_reset() 74 vof_claim(vof, spapr->kernel_addr, spapr->kernel_size, 0) == -1) { in spapr_vof_reset()
|
/qemu/hw/sparc64/ |
H A D | sun4u.c | 163 long kernel_size; in sun4u_load_kernel() local 169 kernel_size = 0; in sun4u_load_kernel() 181 if (kernel_size < 0) { in sun4u_load_kernel() 184 kernel_size = load_aout(kernel_filename, KERNEL_LOAD_ADDR, in sun4u_load_kernel() 188 if (kernel_size < 0) { in sun4u_load_kernel() 189 kernel_size = load_image_targphys(kernel_filename, in sun4u_load_kernel() 193 if (kernel_size < 0) { in sun4u_load_kernel() 222 return kernel_size; in sun4u_load_kernel() 683 kernel_size = sun4u_load_kernel(machine->kernel_filename, in sun4uv_init() 690 kernel_addr, kernel_size, in sun4uv_init() [all …]
|
/qemu/hw/tricore/ |
H A D | triboard.c | 37 long kernel_size; in tricore_load_kernel() local 41 kernel_size = load_elf(kernel_filename, NULL, in tricore_load_kernel() 45 if (kernel_size <= 0) { in tricore_load_kernel()
|
H A D | tricore_testboard.c | 41 long kernel_size; in tricore_load_kernel() local 43 kernel_size = load_elf(tricoretb_binfo.kernel_filename, NULL, in tricore_load_kernel() 47 if (kernel_size <= 0) { in tricore_load_kernel()
|
/qemu/pc-bios/optionrom/ |
H A D | linuxboot_dma.c | 145 uint32_t kernel_size; in load_kernel() local 181 bios_cfg_read_entry_dma(&kernel_size, FW_CFG_KERNEL_SIZE, 4); in load_kernel() 182 bios_cfg_read_entry_dma(kernel_addr, FW_CFG_KERNEL_DATA, kernel_size); in load_kernel()
|
/qemu/hw/mips/ |
H A D | mipssim.c | 70 long kernel_size; in load_kernel() local 73 kernel_size = load_elf(loaderparams.kernel_filename, NULL, in load_kernel() 78 if (kernel_size < 0) { in load_kernel() 81 load_elf_strerror(kernel_size)); in load_kernel()
|
H A D | fuloong2e.c | 99 long kernel_size; in load_kernel() local 104 kernel_size = load_elf(loaderparams.kernel_filename, NULL, in load_kernel() 109 if (kernel_size < 0) { in load_kernel() 112 load_elf_strerror(kernel_size)); in load_kernel()
|
/qemu/hw/loongarch/ |
H A D | boot.c | 177 ssize_t kernel_size; in load_kernel_info() local 179 kernel_size = load_elf(info->kernel_filename, NULL, in load_kernel_info() 185 if (kernel_size < 0) { in load_kernel_info() 188 load_elf_strerror(kernel_size)); in load_kernel_info() 195 initrd_offset = ROUND_UP(kernel_high + 4 * kernel_size, 64 * KiB); in load_kernel_info()
|
/qemu/hw/rx/ |
H A D | rx-gdbsim.c | 63 long kernel_size; in DECLARE_OBJ_CHECKERS() local 66 kernel_size = load_image_targphys(filename, start, size); in DECLARE_OBJ_CHECKERS() 67 if (kernel_size < 0) { in DECLARE_OBJ_CHECKERS()
|
/qemu/hw/sparc/ |
H A D | leon3.c | 378 long kernel_size; in leon3_generic_hw_init() local 381 kernel_size = load_elf(kernel_filename, NULL, NULL, NULL, in leon3_generic_hw_init() 384 if (kernel_size < 0) { in leon3_generic_hw_init() 385 kernel_size = load_uimage(kernel_filename, NULL, &entry, in leon3_generic_hw_init() 388 if (kernel_size < 0) { in leon3_generic_hw_init()
|
H A D | sun4m.c | 229 long kernel_size; in sun4m_load_kernel() local 234 kernel_size = 0; in sun4m_load_kernel() 243 kernel_size = load_elf(kernel_filename, NULL, in sun4m_load_kernel() 246 if (kernel_size < 0) in sun4m_load_kernel() 250 if (kernel_size < 0) in sun4m_load_kernel() 251 kernel_size = load_image_targphys(kernel_filename, in sun4m_load_kernel() 254 if (kernel_size < 0) { in sun4m_load_kernel() 282 return kernel_size; in sun4m_load_kernel() 829 unsigned long kernel_size; in sun4m_hw_init() local 1049 kernel_size = sun4m_load_kernel(machine->kernel_filename, in sun4m_hw_init() [all …]
|
/qemu/hw/s390x/ |
H A D | ipl.c | 146 int kernel_size; in s390_ipl_realize() local 196 kernel_size = load_elf(ipl->kernel, NULL, NULL, NULL, in s390_ipl_realize() 199 if (kernel_size < 0) { in s390_ipl_realize() 200 kernel_size = load_image_targphys(ipl->kernel, 0, ms->ram_size); in s390_ipl_realize() 201 if (kernel_size < 0) { in s390_ipl_realize() 255 while (kernel_size + 0x100000 > initrd_offset) { in s390_ipl_realize()
|
/qemu/hw/sh4/ |
H A D | r2d.c | 324 int kernel_size; in r2d_init() local 326 kernel_size = load_image_targphys(kernel_filename, in r2d_init() 329 if (kernel_size < 0) { in r2d_init()
|