Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
158 if (initrd_start) { in prom_meminit()
202 initrd_start = simple_strtoul(tmp, &endptr, 16); in initrd_setup()
206 initrd_end = initrd_start + initrd_size; in initrd_setup()
207 printk("Found initrd of %lx@%lx\n", initrd_size, initrd_start); in initrd_setup()
211 initrd_start = 0; in initrd_setup()
/kernel/linux/linux-5.10/arch/csky/mm/
Dinit.c44 if (initrd_start >= initrd_end) { in setup_initrd()
54 size = initrd_end - initrd_start; in setup_initrd()
56 if (memblock_is_region_reserved(__pa(initrd_start), size)) { in setup_initrd()
58 __pa(initrd_start), size); in setup_initrd()
62 memblock_reserve(__pa(initrd_start), size); in setup_initrd()
65 (void *)(initrd_start), size); in setup_initrd()
72 initrd_start = initrd_end = 0; in setup_initrd()
/kernel/linux/linux-5.10/arch/mips/kernel/
Dsetup.c127 initrd_start = start; in rd_start_early()
150 if (!initrd_start || initrd_end <= initrd_start) in init_initrd()
153 if (initrd_start & ~PAGE_MASK) { in init_initrd()
157 if (initrd_start < PAGE_OFFSET) { in init_initrd()
171 initrd_start = (unsigned long)__va(__pa(initrd_start)); in init_initrd()
176 initrd_start = 0; in init_initrd()
190 if (!memcmp((void *)initrd_start, "070701", 6)) in maybe_bswap_initrd()
194 if (decompress_method((unsigned char *)initrd_start, 8, NULL)) in maybe_bswap_initrd()
198 buf = swab64p((u64 *)initrd_start); in maybe_bswap_initrd()
204 for (i = initrd_start; i < ALIGN(initrd_end, 8); i += 8) in maybe_bswap_initrd()
[all …]
/kernel/linux/linux-5.10/arch/alpha/boot/
Dbootp.c150 static unsigned long initrd_start; in start_kernel() local
167 initrd_start = ((START_ADDR + 5*KERNEL_SIZE + PAGE_SIZE) | in start_kernel()
170 srm_printk("Initrd positioned at %#lx\n", initrd_start); in start_kernel()
177 move_stack(initrd_start - PAGE_SIZE); in start_kernel()
201 load(initrd_start, KERNEL_ORIGIN+KERNEL_SIZE, INITRD_IMAGE_SIZE); in start_kernel()
209 ((long *)(ZERO_PGE+256))[0] = initrd_start; in start_kernel()
/kernel/linux/linux-5.10/arch/arm/boot/bootp/
Dinitrd.S2 .type initrd_start,#object
3 .globl initrd_start symbol
4 initrd_start: label
/kernel/linux/linux-5.10/init/
Dinitramfs.c561 if (initrd_start >= crashk_end || initrd_end <= crashk_start) in kexec_free_initrd()
567 memset((void *)initrd_start, 0, initrd_end - initrd_start); in kexec_free_initrd()
568 if (initrd_start < crashk_start) in kexec_free_initrd()
569 free_initrd_mem(initrd_start, crashk_start); in kexec_free_initrd()
596 written = xwrite(file, (char *)initrd_start, initrd_end - initrd_start, in populate_initrd_image()
598 if (written != initrd_end - initrd_start) in populate_initrd_image()
600 written, initrd_end - initrd_start); in populate_initrd_image()
612 if (!initrd_start || IS_ENABLED(CONFIG_INITRAMFS_FORCE)) in populate_rootfs()
620 err = unpack_to_rootfs((char *)initrd_start, initrd_end - initrd_start); in populate_rootfs()
634 if (!do_retain_initrd && initrd_start && !kexec_free_initrd()) in populate_rootfs()
[all …]
/kernel/linux/linux-5.10/arch/c6x/kernel/
Dsetup.c335 if (initrd_start < initrd_end) in setup_arch()
336 if (memblock_is_region_memory(initrd_start, in setup_arch()
337 initrd_end - initrd_start)) in setup_arch()
338 memblock_reserve(initrd_start, in setup_arch()
339 initrd_end - initrd_start); in setup_arch()
363 if (initrd_start < initrd_end) { in setup_arch()
364 if (!memblock_is_region_memory(initrd_start, in setup_arch()
365 initrd_end - initrd_start)) in setup_arch()
366 enable_caching(CACHE_REGION_START(initrd_start), in setup_arch()
/kernel/linux/linux-5.10/arch/x86/mm/
Dmem_encrypt_identity.c294 unsigned long initrd_start, initrd_end, initrd_len; in sme_encrypt_kernel() local
322 initrd_start = 0; in sme_encrypt_kernel()
329 initrd_start = (unsigned long)bp->hdr.ramdisk_image | in sme_encrypt_kernel()
331 initrd_end = PAGE_ALIGN(initrd_start + initrd_len); in sme_encrypt_kernel()
332 initrd_len = initrd_end - initrd_start; in sme_encrypt_kernel()
440 ppd.paddr = initrd_start; in sme_encrypt_kernel()
441 ppd.vaddr = initrd_start; in sme_encrypt_kernel()
447 ppd.paddr = initrd_start; in sme_encrypt_kernel()
448 ppd.vaddr = initrd_start + decrypted_base; in sme_encrypt_kernel()
469 sme_encrypt_execute(initrd_start, initrd_start + decrypted_base, in sme_encrypt_kernel()
[all …]
/kernel/linux/linux-5.10/arch/alpha/mm/
Dnuma.c179 initrd_start = INITRD_START; in setup_memory()
180 if (initrd_start) { in setup_memory()
183 initrd_end = initrd_start+INITRD_SIZE; in setup_memory()
185 (void *) initrd_start, INITRD_SIZE); in setup_memory()
194 nid = kvaddr_to_nid(initrd_start); in setup_memory()
195 memblock_reserve(virt_to_phys((void *)initrd_start), in setup_memory()
/kernel/linux/linux-5.10/arch/sparc/mm/
Dinit_32.c113 initrd_start = sparc_ramdisk_image + phys_base; in find_ramdisk()
114 initrd_end = initrd_start + sparc_ramdisk_size; in find_ramdisk()
119 initrd_start = 0; in find_ramdisk()
122 size = initrd_end - initrd_start; in find_ramdisk()
123 memblock_reserve(initrd_start, size); in find_ramdisk()
125 initrd_start = (initrd_start - phys_base) + PAGE_OFFSET; in find_ramdisk()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/arch/m68k/kernel/
Dsetup_no.c157 if ((initrd_start > 0) && (initrd_start < initrd_end) && in setup_arch()
159 memblock_reserve(initrd_start, initrd_end - initrd_start); in setup_arch()
Duboot.c82 initrd_start = uboot_initrd_start; in parse_uboot_commandline()
85 pr_info("initrd at 0x%lx:0x%lx\n", initrd_start, initrd_end); in parse_uboot_commandline()
/kernel/linux/linux-5.10/arch/parisc/mm/
Dinit.c307 if (initrd_start) { in setup_bootmem()
308 printk(KERN_INFO "initrd: %08lx-%08lx\n", initrd_start, initrd_end); in setup_bootmem()
309 if (__pa(initrd_start) < mem_max) { in setup_bootmem()
313 initrd_reserve = mem_max - __pa(initrd_start); in setup_bootmem()
315 initrd_reserve = initrd_end - initrd_start; in setup_bootmem()
318 …NFO "initrd: reserving %08lx-%08lx (mem_max %08lx)\n", __pa(initrd_start), __pa(initrd_start) + in… in setup_bootmem()
320 memblock_reserve(__pa(initrd_start), initrd_reserve); in setup_bootmem()
643 printk(KERN_INFO "initrd: mapping %08lx-%08lx\n", initrd_start, initrd_end); in pagetable_init()
644 map_pages(initrd_start, __pa(initrd_start), in pagetable_init()
645 initrd_end - initrd_start, PAGE_KERNEL, 0); in pagetable_init()
/kernel/linux/linux-5.10/arch/openrisc/kernel/
Dsetup.c80 if (initrd_start && (initrd_end > initrd_start)) { in setup_memory()
81 unsigned long aligned_start = ALIGN_DOWN(initrd_start, PAGE_SIZE); in setup_memory()
302 if (initrd_start == initrd_end) { in setup_arch()
304 initrd_start = 0; in setup_arch()
308 (void *)(initrd_start), initrd_end - initrd_start); in setup_arch()
/kernel/linux/linux-5.10/arch/arm/boot/compressed/
Dkaslr.c27 u32 initrd_start; member
152 if (regions_intersect(start, end, regions->initrd_start, in intersects_occupied_region()
153 regions->initrd_start + regions->initrd_size)) in intersects_occupied_region()
376 regions.initrd_start = regions.initrd_size = 0; in kaslr_early_init()
379 regions.initrd_start = __memparse(p + 7, &p); in kaslr_early_init()
383 regions.initrd_start = 0; in kaslr_early_init()
405 regions.initrd_start = start; in kaslr_early_init()
428 puthex32(regions.initrd_start); in kaslr_early_init()
Datags_to_fdt.c196 uint32_t initrd_start, initrd_size; in atags_to_fdt() local
197 initrd_start = atag->u.initrd.start; in atags_to_fdt()
200 initrd_start); in atags_to_fdt()
202 initrd_start + initrd_size); in atags_to_fdt()
/kernel/linux/linux-5.10/arch/sh/kernel/
Dsetup.c166 initrd_start = (unsigned long)__va(start); in check_for_initrd()
167 initrd_end = initrd_start + INITRD_SIZE; in check_for_initrd()
169 memblock_reserve(__pa(initrd_start), INITRD_SIZE); in check_for_initrd()
175 initrd_start = initrd_end = 0; in check_for_initrd()
/kernel/linux/linux-5.10/arch/um/kernel/
Dinitrd.c46 initrd_start = (unsigned long) area; in read_initrd()
47 initrd_end = initrd_start + size; in read_initrd()
/kernel/linux/linux-5.10/arch/xtensa/kernel/
Dsetup.c61 extern unsigned long initrd_start;
118 initrd_start = (unsigned long)__va(mi->start); in parse_tag_initrd()
339 if (initrd_start < initrd_end && in setup_arch()
340 !mem_reserve(__pa(initrd_start), __pa(initrd_end))) in setup_arch()
343 initrd_start = 0; in setup_arch()
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dsetup.c294 size = initrd_end - initrd_start; in move_initrd()
297 initrd_start = initrd_end = 0; in move_initrd()
300 memmove(start, (void *)initrd_start, size); in move_initrd()
301 initrd_start = (unsigned long)start; in move_initrd()
302 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()
/kernel/linux/linux-5.10/arch/microblaze/mm/
Dinit.c287 if (initrd_start) { in mmu_init()
289 size = initrd_end - initrd_start; in mmu_init()
290 memblock_reserve(__virt_to_phys(initrd_start), size); in mmu_init()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsetup-common.c373 initrd_start, initrd_end); in check_for_initrd()
378 if (is_kernel_addr(initrd_start) && is_kernel_addr(initrd_end) && in check_for_initrd()
379 initrd_end > initrd_start) in check_for_initrd()
382 initrd_start = initrd_end = 0; in check_for_initrd()
384 if (initrd_start) in check_for_initrd()
385 pr_info("Found initrd at 0x%lx:0x%lx\n", initrd_start, initrd_end); in check_for_initrd()
Dprom.c96 if (!initrd_start) in overlaps_initrd()
99 return (start + size) > ALIGN_DOWN(initrd_start, PAGE_SIZE) && in overlaps_initrd()
635 if (initrd_start && (initrd_end > initrd_start)) { in early_reserve_mem()
636 memblock_reserve(ALIGN_DOWN(__pa(initrd_start), PAGE_SIZE), in early_reserve_mem()
638 ALIGN_DOWN(initrd_start, PAGE_SIZE)); in early_reserve_mem()

123