/arch/x86/kernel/ |
D | machine_kexec_32.c | 70 static void machine_kexec_free_page_tables(struct kimage *image) in machine_kexec_free_page_tables() argument 72 free_page((unsigned long)image->arch.pgd); in machine_kexec_free_page_tables() 74 free_page((unsigned long)image->arch.pmd0); in machine_kexec_free_page_tables() 75 free_page((unsigned long)image->arch.pmd1); in machine_kexec_free_page_tables() 77 free_page((unsigned long)image->arch.pte0); in machine_kexec_free_page_tables() 78 free_page((unsigned long)image->arch.pte1); in machine_kexec_free_page_tables() 81 static int machine_kexec_alloc_page_tables(struct kimage *image) in machine_kexec_alloc_page_tables() argument 83 image->arch.pgd = (pgd_t *)get_zeroed_page(GFP_KERNEL); in machine_kexec_alloc_page_tables() 85 image->arch.pmd0 = (pmd_t *)get_zeroed_page(GFP_KERNEL); in machine_kexec_alloc_page_tables() 86 image->arch.pmd1 = (pmd_t *)get_zeroed_page(GFP_KERNEL); in machine_kexec_alloc_page_tables() [all …]
|
D | machine_kexec_64.c | 34 static void free_transition_pgtable(struct kimage *image) in free_transition_pgtable() argument 36 free_page((unsigned long)image->arch.pud); in free_transition_pgtable() 37 free_page((unsigned long)image->arch.pmd); in free_transition_pgtable() 38 free_page((unsigned long)image->arch.pte); in free_transition_pgtable() 41 static int init_transition_pgtable(struct kimage *image, pgd_t *pgd) in init_transition_pgtable() argument 50 paddr = __pa(page_address(image->control_code_page)+PAGE_SIZE); in init_transition_pgtable() 56 image->arch.pud = pud; in init_transition_pgtable() 64 image->arch.pmd = pmd; in init_transition_pgtable() 72 image->arch.pte = pte; in init_transition_pgtable() 79 free_transition_pgtable(image); in init_transition_pgtable() [all …]
|
D | crash.c | 54 struct kimage *image; member 208 struct kimage *image) in fill_up_crash_elf_data() argument 212 ced->image = image; in fill_up_crash_elf_data() 359 struct kimage *image = ced->image; in prepare_elf64_ram_headers_callback() local 388 if (mstart == image->arch.backup_src_start && in prepare_elf64_ram_headers_callback() 389 (mend - mstart + 1) == image->arch.backup_src_sz) in prepare_elf64_ram_headers_callback() 390 phdr->p_offset = image->arch.backup_load_addr; in prepare_elf64_ram_headers_callback() 497 static int prepare_elf_headers(struct kimage *image, void **addr, in prepare_elf_headers() argument 507 fill_up_crash_elf_data(ced, image); in prepare_elf_headers() 543 static int memmap_exclude_ranges(struct kimage *image, struct crash_mem *cmem, in memmap_exclude_ranges() argument [all …]
|
D | kexec-bzimage64.c | 69 static int setup_cmdline(struct kimage *image, struct boot_params *params, in setup_cmdline() argument 79 if (image->type == KEXEC_TYPE_CRASH) { in setup_cmdline() 81 " elfcorehdr=0x%lx", image->arch.elf_load_addr); in setup_cmdline() 198 setup_boot_parameters(struct kimage *image, struct boot_params *params, in setup_boot_parameters() argument 228 if (image->type == KEXEC_TYPE_CRASH) { in setup_boot_parameters() 229 ret = crash_setup_memmap_entries(image, params); in setup_boot_parameters() 329 static void *bzImage64_load(struct kimage *image, char *kernel, in bzImage64_load() argument 375 if (image->type == KEXEC_TYPE_CRASH) { in bzImage64_load() 376 ret = crash_load_segments(image); in bzImage64_load() 385 ret = kexec_load_purgatory(image, MIN_PURGATORY_ADDR, ULONG_MAX, 1, in bzImage64_load() [all …]
|
/arch/x86/vdso/ |
D | vma.c | 26 void __init init_vdso_image(const struct vdso_image *image) in init_vdso_image() argument 29 int npages = (image->size) / PAGE_SIZE; in init_vdso_image() 31 BUG_ON(image->size % PAGE_SIZE != 0); in init_vdso_image() 33 image->text_mapping.pages[i] = in init_vdso_image() 34 virt_to_page(image->data + i*PAGE_SIZE); in init_vdso_image() 36 apply_alternatives((struct alt_instr *)(image->data + image->alt), in init_vdso_image() 37 (struct alt_instr *)(image->data + image->alt + in init_vdso_image() 38 image->alt_len)); in init_vdso_image() 105 static int map_vdso(const struct vdso_image *image, bool calculate_addr) in map_vdso() argument 119 image->size - image->sym_vvar_start); in map_vdso() [all …]
|
/arch/powerpc/boot/ |
D | Makefile | 213 image-$(CONFIG_PPC_PSERIES) += zImage.pseries 214 image-$(CONFIG_PPC_POWERNV) += zImage.pseries 215 image-$(CONFIG_PPC_MAPLE) += zImage.maple 216 image-$(CONFIG_PPC_IBM_CELL_BLADE) += zImage.pseries 217 image-$(CONFIG_PPC_PS3) += dtbImage.ps3 218 image-$(CONFIG_PPC_CELLEB) += zImage.pseries 219 image-$(CONFIG_PPC_CELL_QPACE) += zImage.pseries 220 image-$(CONFIG_PPC_CHRP) += zImage.chrp 221 image-$(CONFIG_PPC_EFIKA) += zImage.chrp 222 image-$(CONFIG_PPC_PMAC) += zImage.pmac [all …]
|
/arch/sh/kernel/ |
D | machine_kexec.c | 45 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument 50 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() argument 54 static void kexec_info(struct kimage *image) in kexec_info() argument 58 for (i = 0; i < image->nr_segments; i++) { in kexec_info() 61 (unsigned int)image->segment[i].mem, in kexec_info() 62 (unsigned int)image->segment[i].mem + in kexec_info() 63 image->segment[i].memsz, in kexec_info() 64 (unsigned int)image->segment[i].memsz); in kexec_info() 66 printk(" start : 0x%08x\n\n", (unsigned int)image->start); in kexec_info() 73 void machine_kexec(struct kimage *image) in machine_kexec() argument [all …]
|
/arch/s390/kernel/ |
D | machine_kexec.c | 111 static void __do_machine_kdump(void *image) in __do_machine_kdump() argument 114 int (*start_kdump)(int) = (void *)((struct kimage *) image)->start; in __do_machine_kdump() 125 static int kdump_csum_valid(struct kimage *image) in kdump_csum_valid() argument 128 int (*start_kdump)(int) = (void *)image->start; in kdump_csum_valid() 191 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument 199 if (image->type == KEXEC_TYPE_CRASH) in machine_kexec_prepare() 203 if (image->type != KEXEC_TYPE_DEFAULT) in machine_kexec_prepare() 207 reboot_code_buffer = (void *) page_to_phys(image->control_code_page); in machine_kexec_prepare() 214 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() argument 239 struct kimage *image = data; in __do_machine_kexec() local [all …]
|
/arch/x86/platform/efi/ |
D | efi-bgrt.c | 31 void __iomem *image; in efi_bgrt_init() local 68 image = efi_lookup_mapped_addr(bgrt_tab->image_address); in efi_bgrt_init() 69 if (!image) { in efi_bgrt_init() 70 image = early_memremap(bgrt_tab->image_address, in efi_bgrt_init() 73 if (!image) { in efi_bgrt_init() 79 memcpy_fromio(&bmp_header, image, sizeof(bmp_header)); in efi_bgrt_init() 81 early_iounmap(image, sizeof(bmp_header)); in efi_bgrt_init() 92 image = early_memremap(bgrt_tab->image_address, in efi_bgrt_init() 94 if (!image) { in efi_bgrt_init() 102 memcpy_fromio(bgrt_image, image, bgrt_image_size); in efi_bgrt_init() [all …]
|
/arch/ia64/kernel/ |
D | machine_kexec.c | 58 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument 65 control_code_buffer = page_address(image->control_code_page); in machine_kexec_prepare() 70 ia64_kimage = image; in machine_kexec_prepare() 75 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() argument 85 struct kimage *image = arg; in ia64_machine_kexec() local 93 BUG_ON(!image); in ia64_machine_kexec() 94 code_addr = (unsigned long)page_address(image->control_code_page); in ia64_machine_kexec() 95 if (image->type == KEXEC_TYPE_CRASH) { in ia64_machine_kexec() 134 (*rnk)(image->head, image->start, ia64_boot_param, in ia64_machine_kexec() 139 void machine_kexec(struct kimage *image) in machine_kexec() argument [all …]
|
/arch/sparc/boot/ |
D | Makefile | 10 targets := tftpboot.img image zImage vmlinux.aout 14 cmd_elftoaout = $(ELFTOAOUT) $(obj)/image -o $@ 24 $(obj)/zImage: $(obj)/image 33 $(obj)/zImage: $(obj)/image 43 $(obj)/image.bin: $(obj)/image FORCE 46 $(obj)/image.gz: $(obj)/image.bin 58 $(obj)/uImage: $(obj)/image.gz 65 $(obj)/image: vmlinux FORCE 69 $(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback System.map $(ROOT_IMG) FORCE
|
D | piggyback.c | 191 int image, tail; in main() local 205 if ((image = open(argv[2], O_RDWR)) < 0) in main() 207 if (read(image, buffer, 512) != 512) in main() 221 offset = get_hdrs_offset(image, argv[2]); in main() 225 if (lseek(image, offset, 0) < 0) in main() 240 if (write(image, buffer + 2, 14) != 14) in main() 246 if (lseek(image, 4, 0) < 0) in main() 255 if (write(image, buffer, 12) != 12) in main() 260 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0) in main() 265 if (write(image, buffer, i) != i) in main() [all …]
|
/arch/mips/kernel/ |
D | machine_kexec.c | 62 machine_kexec(struct kimage *image) in machine_kexec() argument 69 (unsigned long)page_address(image->control_code_page); in machine_kexec() 72 (unsigned long) phys_to_virt(image->start); in machine_kexec() 74 if (image->type == KEXEC_TYPE_DEFAULT) { in machine_kexec() 76 (unsigned long) phys_to_virt(image->head & PAGE_MASK); in machine_kexec() 78 kexec_indirection_page = (unsigned long)&image->head; in machine_kexec() 90 for (ptr = &image->head; (entry = *ptr) && !(entry &IND_DONE); in machine_kexec() 103 printk("Will call new kernel at %08lx\n", image->start); in machine_kexec()
|
D | vdso.c | 38 static void __init init_vdso_image(struct mips_vdso_image *image) in init_vdso_image() argument 43 BUG_ON(!PAGE_ALIGNED(image->data)); in init_vdso_image() 44 BUG_ON(!PAGE_ALIGNED(image->size)); in init_vdso_image() 46 num_pages = image->size / PAGE_SIZE; in init_vdso_image() 48 data_pfn = __phys_to_pfn(__pa_symbol(image->data)); in init_vdso_image() 50 image->mapping.pages[i] = pfn_to_page(data_pfn + i); in init_vdso_image() 99 struct mips_vdso_image *image = current->thread.abi->vdso; in arch_setup_additional_pages() local 122 size = vvar_size + image->size; in arch_setup_additional_pages() 149 vma = _install_special_mapping(mm, vdso_addr, image->size, in arch_setup_additional_pages() 152 &image->mapping); in arch_setup_additional_pages()
|
/arch/powerpc/kernel/ |
D | machine_kexec_64.c | 33 int default_machine_kexec_prepare(struct kimage *image) in default_machine_kexec_prepare() argument 50 for (i = 0; i < image->nr_segments; i++) in default_machine_kexec_prepare() 51 if (image->segment[i].mem < __pa(_end)) in default_machine_kexec_prepare() 68 for (i = 0; i < image->nr_segments; i++) { in default_machine_kexec_prepare() 69 begin = image->segment[i].mem; in default_machine_kexec_prepare() 70 end = begin + image->segment[i].memsz; in default_machine_kexec_prepare() 87 for (i = 0; i < image->nr_segments; i++) { in default_machine_kexec_prepare() 88 begin = image->segment[i].mem; in default_machine_kexec_prepare() 89 end = begin + image->segment[i].memsz; in default_machine_kexec_prepare() 134 void kexec_copy_flush(struct kimage *image) in kexec_copy_flush() argument [all …]
|
D | machine_kexec_32.c | 31 void default_machine_kexec(struct kimage *image) in default_machine_kexec() argument 46 page_list = image->head; in default_machine_kexec() 50 (unsigned long)page_address(image->control_code_page); in default_machine_kexec() 63 (*rnk)(page_list, reboot_code_buffer_phys, image->start); in default_machine_kexec() 66 int default_machine_kexec_prepare(struct kimage *image) in default_machine_kexec_prepare() argument
|
/arch/arm/kernel/ |
D | machine_kexec.c | 38 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument 56 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare() 57 current_segment = &image->segment[i]; in machine_kexec_prepare() 73 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() argument 143 void machine_kexec(struct kimage *image) in machine_kexec() argument 159 page_list = image->head & PAGE_MASK; in machine_kexec() 163 page_to_pfn(image->control_code_page) << PAGE_SHIFT; in machine_kexec() 164 reboot_code_buffer = page_address(image->control_code_page); in machine_kexec() 168 kexec_start_address = image->start; in machine_kexec() 171 kexec_boot_atags = dt_mem ?: image->start - KEXEC_ARM_ZIMAGE_OFFSET in machine_kexec()
|
/arch/m68k/kernel/ |
D | machine_kexec.c | 37 void machine_kexec(struct kimage *image) in machine_kexec() argument 42 reboot_code_buffer = page_address(image->control_code_page); in machine_kexec() 52 pr_info("Will call new kernel at 0x%08lx. Bye...\n", image->start); in machine_kexec() 55 ((relocate_kernel_t) reboot_code_buffer)(image->head & PAGE_MASK, in machine_kexec() 56 image->start, in machine_kexec()
|
/arch/tile/kernel/ |
D | machine_kexec.c | 77 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument 85 if (image->type != KEXEC_TYPE_DEFAULT) { in machine_kexec_prepare() 89 image->type); in machine_kexec_prepare() 95 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() argument 172 static void kexec_find_and_set_command_line(struct kimage *image) in kexec_find_and_set_command_line() argument 180 for (ptr = &image->head; in kexec_find_and_set_command_line() 270 void machine_kexec(struct kimage *image) in machine_kexec() argument 280 kexec_find_and_set_command_line(image); in machine_kexec() 287 homecache_change_page_home(image->control_code_page, 0, in machine_kexec() 289 reboot_code_buffer = page_address(image->control_code_page); in machine_kexec() [all …]
|
/arch/xtensa/boot/boot-elf/ |
D | boot.lds.S | 26 .image KERNELOFFSET: AT (LOAD_MEMORY_ADDRESS) 29 *(image) 34 .bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
|
/arch/arm/mach-ixp4xx/ |
D | ixp4xx_npe.c | 525 } *image; in npe_load_firmware() local 544 image = (struct dl_image*)fw_entry->data; in npe_load_firmware() 548 image->magic, image->id, image->size, image->size * 4); in npe_load_firmware() 551 if (image->magic == swab32(FW_MAGIC)) { /* swapped file */ in npe_load_firmware() 552 image->id = swab32(image->id); in npe_load_firmware() 553 image->size = swab32(image->size); in npe_load_firmware() 554 } else if (image->magic != FW_MAGIC) { in npe_load_firmware() 556 image->magic); in npe_load_firmware() 559 if ((image->size * 4 + sizeof(struct dl_image)) != fw_entry->size) { in npe_load_firmware() 564 if (((image->id >> 24) & 0xF /* NPE ID */) != npe->id) { in npe_load_firmware() [all …]
|
/arch/x86/include/asm/ |
D | crash.h | 4 int crash_load_segments(struct kimage *image); 5 int crash_copy_backup_region(struct kimage *image); 6 int crash_setup_memmap_entries(struct kimage *image,
|
/arch/xtensa/boot/boot-redboot/ |
D | boot.ld | 36 .image 0xd0003000: AT(__image_load) 39 *(image) 45 .bss ((LOADADDR(.image) + SIZEOF(.image) + 3) & ~ 3):
|
/arch/mips/vdso/ |
D | Makefile | 69 targets += vdso.lds vdso.so.dbg vdso.so vdso-image.c 81 $(obj)/vdso-image.c: $(obj)/vdso.so.dbg $(obj)/genvdso FORCE 84 obj-y += vdso-image.o 92 targets += vdso-o32.lds vdso-o32.so.dbg vdso-o32.so vdso-o32-image.c 115 $(obj)/vdso-o32-image.c: VDSO_NAME := o32 116 $(obj)/vdso-o32-image.c: $(obj)/vdso-o32.so.dbg $(obj)/genvdso FORCE 119 obj-y += vdso-o32-image.o 128 targets += vdso-n32.lds vdso-n32.so.dbg vdso-n32.so vdso-n32-image.c 151 $(obj)/vdso-n32-image.c: VDSO_NAME := n32 152 $(obj)/vdso-n32-image.c: $(obj)/vdso-n32.so.dbg $(obj)/genvdso FORCE [all …]
|
/arch/powerpc/platforms/85xx/ |
D | smp.c | 375 static void mpc85xx_smp_flush_dcache_kexec(struct kimage *image) in mpc85xx_smp_flush_dcache_kexec() argument 381 if (image->type == KEXEC_TYPE_DEFAULT) { in mpc85xx_smp_flush_dcache_kexec() 383 for (ptr = &image->head; (entry = *ptr) && !(entry & IND_DONE); in mpc85xx_smp_flush_dcache_kexec() 394 for (i = 0; i < image->nr_segments; i++) { in mpc85xx_smp_flush_dcache_kexec() 395 struct kexec_segment *seg = &image->segment[i]; in mpc85xx_smp_flush_dcache_kexec() 404 flush_dcache_range((unsigned long)image, in mpc85xx_smp_flush_dcache_kexec() 405 (unsigned long)image + sizeof(*image)); in mpc85xx_smp_flush_dcache_kexec() 408 static void mpc85xx_smp_machine_kexec(struct kimage *image) in mpc85xx_smp_machine_kexec() argument 413 mpc85xx_smp_flush_dcache_kexec(image); in mpc85xx_smp_machine_kexec() 415 if (image->type == KEXEC_TYPE_DEFAULT) in mpc85xx_smp_machine_kexec() [all …]
|