Home
last modified time | relevance | path

Searched refs:initrd_start (Results 1 – 25 of 57) sorted by relevance

123

/Linux-v5.4/arch/mips/ath79/
Dprom.c28 initrd_start = fw_getenvl("initrd_start"); in prom_init()
29 if (initrd_start) { in prom_init()
30 initrd_start = KSEG0ADDR(initrd_start); in prom_init()
31 initrd_end = initrd_start + fw_getenvl("initrd_size"); in prom_init()
/Linux-v5.4/arch/mips/sibyte/common/
Dcfe.c47 extern unsigned long initrd_start, initrd_end;
95 initrd_pstart = CPHYSADDR(initrd_start); in prom_meminit()
97 if (initrd_start && in prom_meminit()
114 if (initrd_start) { in prom_meminit()
160 if (initrd_start) { in prom_meminit()
204 initrd_start = simple_strtoul(tmp, &endptr, 16); in initrd_setup()
208 initrd_end = initrd_start + initrd_size; in initrd_setup()
209 printk("Found initrd of %lx@%lx\n", initrd_size, initrd_start); in initrd_setup()
213 initrd_start = 0; in initrd_setup()
/Linux-v5.4/arch/mips/kernel/
Dsetup.c163 initrd_start = start; in rd_start_early()
186 if (!initrd_start || initrd_end <= initrd_start) in init_initrd()
189 if (initrd_start & ~PAGE_MASK) { in init_initrd()
193 if (initrd_start < PAGE_OFFSET) { in init_initrd()
207 initrd_start = (unsigned long)__va(__pa(initrd_start)); in init_initrd()
212 initrd_start = 0; in init_initrd()
226 if (!memcmp((void *)initrd_start, "070701", 6)) in maybe_bswap_initrd()
230 if (decompress_method((unsigned char *)initrd_start, 8, NULL)) in maybe_bswap_initrd()
234 buf = swab64p((u64 *)initrd_start); in maybe_bswap_initrd()
240 for (i = initrd_start; i < ALIGN(initrd_end, 8); i += 8) in maybe_bswap_initrd()
[all …]
/Linux-v5.4/arch/alpha/boot/
Dbootp.c151 static unsigned long initrd_start; in start_kernel() local
168 initrd_start = ((START_ADDR + 5*KERNEL_SIZE + PAGE_SIZE) | in start_kernel()
171 srm_printk("Initrd positioned at %#lx\n", initrd_start); in start_kernel()
178 move_stack(initrd_start - PAGE_SIZE); in start_kernel()
202 load(initrd_start, KERNEL_ORIGIN+KERNEL_SIZE, INITRD_IMAGE_SIZE); in start_kernel()
210 ((long *)(ZERO_PGE+256))[0] = initrd_start; in start_kernel()
/Linux-v5.4/arch/arm/boot/bootp/
Dinitrd.S2 .type initrd_start,#object
3 .globl initrd_start
4 initrd_start: label
/Linux-v5.4/arch/c6x/kernel/
Dsetup.c334 if (initrd_start < initrd_end) in setup_arch()
335 if (memblock_is_region_memory(initrd_start, in setup_arch()
336 initrd_end - initrd_start)) in setup_arch()
337 memblock_reserve(initrd_start, in setup_arch()
338 initrd_end - initrd_start); in setup_arch()
362 if (initrd_start < initrd_end) { in setup_arch()
363 if (!memblock_is_region_memory(initrd_start, in setup_arch()
364 initrd_end - initrd_start)) in setup_arch()
365 enable_caching(CACHE_REGION_START(initrd_start), in setup_arch()
/Linux-v5.4/arch/x86/mm/
Dmem_encrypt_identity.c285 unsigned long initrd_start, initrd_end, initrd_len; in sme_encrypt_kernel() local
313 initrd_start = 0; in sme_encrypt_kernel()
320 initrd_start = (unsigned long)bp->hdr.ramdisk_image | in sme_encrypt_kernel()
322 initrd_end = PAGE_ALIGN(initrd_start + initrd_len); in sme_encrypt_kernel()
323 initrd_len = initrd_end - initrd_start; in sme_encrypt_kernel()
431 ppd.paddr = initrd_start; in sme_encrypt_kernel()
432 ppd.vaddr = initrd_start; in sme_encrypt_kernel()
438 ppd.paddr = initrd_start; in sme_encrypt_kernel()
439 ppd.vaddr = initrd_start + decrypted_base; in sme_encrypt_kernel()
460 sme_encrypt_execute(initrd_start, initrd_start + decrypted_base, in sme_encrypt_kernel()
[all …]
/Linux-v5.4/arch/sparc/mm/
Dinit_32.c114 initrd_start = sparc_ramdisk_image + phys_base; in find_ramdisk()
115 initrd_end = initrd_start + sparc_ramdisk_size; in find_ramdisk()
120 initrd_start = 0; in find_ramdisk()
123 size = initrd_end - initrd_start; in find_ramdisk()
124 memblock_reserve(initrd_start, size); in find_ramdisk()
126 initrd_start = (initrd_start - phys_base) + PAGE_OFFSET; in find_ramdisk()
/Linux-v5.4/init/
Dinitramfs.c546 if (initrd_start >= crashk_end || initrd_end <= crashk_start) in kexec_free_initrd()
552 memset((void *)initrd_start, 0, initrd_end - initrd_start); in kexec_free_initrd()
553 if (initrd_start < crashk_start) in kexec_free_initrd()
554 free_initrd_mem(initrd_start, crashk_start); in kexec_free_initrd()
633 written = xwrite(fd, (char *)initrd_start, initrd_end - initrd_start); in populate_initrd_image()
634 if (written != initrd_end - initrd_start) in populate_initrd_image()
636 written, initrd_end - initrd_start); in populate_initrd_image()
653 if (!initrd_start || IS_ENABLED(CONFIG_INITRAMFS_FORCE)) in populate_rootfs()
661 err = unpack_to_rootfs((char *)initrd_start, initrd_end - initrd_start); in populate_rootfs()
672 if (!do_retain_initrd && initrd_start && !kexec_free_initrd()) in populate_rootfs()
[all …]
/Linux-v5.4/arch/alpha/mm/
Dnuma.c180 initrd_start = INITRD_START; in setup_memory()
181 if (initrd_start) { in setup_memory()
184 initrd_end = initrd_start+INITRD_SIZE; in setup_memory()
186 (void *) initrd_start, INITRD_SIZE); in setup_memory()
195 nid = kvaddr_to_nid(initrd_start); in setup_memory()
196 memblock_reserve(virt_to_phys((void *)initrd_start), in setup_memory()
/Linux-v5.4/arch/nios2/kernel/
Dsetup.c119 initrd_start = r5; in nios2_boot_init()
170 if (initrd_start) { in setup_arch()
171 memblock_reserve(virt_to_phys((void *)initrd_start), in setup_arch()
172 initrd_end - initrd_start); in setup_arch()
/Linux-v5.4/arch/m68k/kernel/
Dsetup_no.c161 if ((initrd_start > 0) && (initrd_start < initrd_end) && in setup_arch()
163 memblock_reserve(initrd_start, initrd_end - initrd_start); in setup_arch()
Duboot.c83 initrd_start = uboot_initrd_start; in parse_uboot_commandline()
86 pr_info("initrd at 0x%lx:0x%lx\n", initrd_start, initrd_end); in parse_uboot_commandline()
/Linux-v5.4/arch/parisc/mm/
Dinit.c308 if (initrd_start) { in setup_bootmem()
309 printk(KERN_INFO "initrd: %08lx-%08lx\n", initrd_start, initrd_end); in setup_bootmem()
310 if (__pa(initrd_start) < mem_max) { in setup_bootmem()
314 initrd_reserve = mem_max - __pa(initrd_start); in setup_bootmem()
316 initrd_reserve = initrd_end - initrd_start; in setup_bootmem()
319 …NFO "initrd: reserving %08lx-%08lx (mem_max %08lx)\n", __pa(initrd_start), __pa(initrd_start) + in… in setup_bootmem()
321 memblock_reserve(__pa(initrd_start), initrd_reserve); in setup_bootmem()
670 printk(KERN_INFO "initrd: mapping %08lx-%08lx\n", initrd_start, initrd_end); in pagetable_init()
671 map_pages(initrd_start, __pa(initrd_start), in pagetable_init()
672 initrd_end - initrd_start, PAGE_KERNEL, 0); in pagetable_init()
/Linux-v5.4/arch/arm/boot/compressed/
Datags_to_fdt.c194 uint32_t initrd_start, initrd_size; in atags_to_fdt() local
195 initrd_start = atag->u.initrd.start; in atags_to_fdt()
198 initrd_start); in atags_to_fdt()
200 initrd_start + initrd_size); in atags_to_fdt()
/Linux-v5.4/arch/sh/kernel/
Dsetup.c165 initrd_start = (unsigned long)__va(start); in check_for_initrd()
166 initrd_end = initrd_start + INITRD_SIZE; in check_for_initrd()
168 memblock_reserve(__pa(initrd_start), INITRD_SIZE); in check_for_initrd()
174 initrd_start = initrd_end = 0; in check_for_initrd()
/Linux-v5.4/arch/um/kernel/
Dinitrd.c46 initrd_start = (unsigned long) area; in read_initrd()
47 initrd_end = initrd_start + size; in read_initrd()
/Linux-v5.4/arch/xtensa/kernel/
Dsetup.c62 extern unsigned long initrd_start;
119 initrd_start = (unsigned long)__va(mi->start); in parse_tag_initrd()
334 if (initrd_start < initrd_end && in setup_arch()
335 !mem_reserve(__pa(initrd_start), __pa(initrd_end))) in setup_arch()
338 initrd_start = 0; in setup_arch()
/Linux-v5.4/arch/alpha/kernel/
Dsetup.c295 size = initrd_end - initrd_start; in move_initrd()
298 initrd_start = initrd_end = 0; in move_initrd()
301 memmove(start, (void *)initrd_start, size); in move_initrd()
302 initrd_start = (unsigned long)start; in move_initrd()
303 initrd_end = initrd_start + size; in move_initrd()
374 initrd_start = INITRD_START; in setup_memory()
375 if (initrd_start) { in setup_memory()
376 initrd_end = initrd_start+INITRD_SIZE; in setup_memory()
378 (void *) initrd_start, INITRD_SIZE); in setup_memory()
387 memblock_reserve(virt_to_phys((void *)initrd_start), in setup_memory()
/Linux-v5.4/arch/powerpc/kernel/
Dprom.c96 if (!initrd_start) in overlaps_initrd()
99 return (start + size) > _ALIGN_DOWN(initrd_start, PAGE_SIZE) && in overlaps_initrd()
625 if (initrd_start && (initrd_end > initrd_start)) { in early_reserve_mem()
626 memblock_reserve(_ALIGN_DOWN(__pa(initrd_start), PAGE_SIZE), in early_reserve_mem()
628 _ALIGN_DOWN(initrd_start, PAGE_SIZE)); in early_reserve_mem()
Dsetup-common.c376 initrd_start, initrd_end); in check_for_initrd()
381 if (is_kernel_addr(initrd_start) && is_kernel_addr(initrd_end) && in check_for_initrd()
382 initrd_end > initrd_start) in check_for_initrd()
385 initrd_start = initrd_end = 0; in check_for_initrd()
387 if (initrd_start) in check_for_initrd()
388 pr_info("Found initrd at 0x%lx:0x%lx\n", initrd_start, initrd_end); in check_for_initrd()
/Linux-v5.4/arch/riscv/mm/
Dinit.c65 if (initrd_start >= initrd_end) { in setup_initrd()
74 size = initrd_end - initrd_start; in setup_initrd()
75 memblock_reserve(__pa(initrd_start), size); in setup_initrd()
79 (void *)(initrd_start), size); in setup_initrd()
83 initrd_start = 0; in setup_initrd()
/Linux-v5.4/arch/arc/mm/
Dinit.c125 initrd_start = (unsigned long)__va(phys_initrd_start); in setup_arch_memory()
126 initrd_end = initrd_start + phys_initrd_size; in setup_arch_memory()
/Linux-v5.4/arch/microblaze/mm/
Dinit.c318 if (initrd_start) { in mmu_init()
320 size = initrd_end - initrd_start; in mmu_init()
321 memblock_reserve(__virt_to_phys(initrd_start), size); in mmu_init()
/Linux-v5.4/arch/csky/kernel/
Dsetup.c51 memblock_reserve(__pa(initrd_start), initrd_end - initrd_start); in csky_memblock_init()

123