Lines Matching +full:long +full:- +full:ram +full:- +full:code
28 #include <linux/dma-map-ops.h>
44 #include <asm/smp-ops.h>
45 #include <asm/mips-cps.h>
62 unsigned long mips_machtype __read_mostly = MACH_UNKNOWN;
79 unsigned long mips_io_port_base = -1;
82 static struct resource code_resource = { .name = "Kernel code", };
86 unsigned long __kaslr_offset __ro_after_init;
92 unsigned long ARCH_PFN_OFFSET;
106 pr_debug("Memory: %lluMB of RAM detected at 0x%llx (min: %lluMB, max: %lluMB)\n", in detect_memory_region()
107 ((unsigned long long) size) / SZ_1M, in detect_memory_region()
108 (unsigned long long) start, in detect_memory_region()
109 ((unsigned long long) sz_min) / SZ_1M, in detect_memory_region()
110 ((unsigned long long) sz_max) / SZ_1M); in detect_memory_region()
122 unsigned long start = memparse(p, &p); in rd_start_early()
143 static unsigned long __init init_initrd(void) in init_initrd()
145 unsigned long end; in init_initrd()
148 * Board specific code or command line parser should have in init_initrd()
163 * 64-bits values if the kernel has been built in pure in init_initrd()
164 * 32-bit. We need also to switch from KSEG0 to XKPHYS in init_initrd()
165 * addresses now, so the code can now safely use __pa(). in init_initrd()
168 initrd_end = (unsigned long)__va(end); in init_initrd()
169 initrd_start = (unsigned long)__va(__pa(initrd_start)); in init_initrd()
204 unsigned long i; in maybe_bswap_initrd()
215 unsigned long size = initrd_end - initrd_start; in finalize_initrd()
235 printk(KERN_CONT " - disabling initrd\n"); in finalize_initrd()
242 static unsigned long __init init_initrd(void) in init_initrd()
268 unsigned long start, end; in bootmem_init()
276 * for bootmem setup initially, rely on the end-of-kernel-code in bootmem_init()
284 __pa_symbol(&_end) - __pa_symbol(&_text)); in bootmem_init()
292 * Reserve any memory between the start of RAM and PHYS_OFFSET in bootmem_init()
295 memblock_reserve(PHYS_OFFSET, ramstart - PHYS_OFFSET); in bootmem_init()
299 (unsigned long)((PFN_UP(ramstart) - ARCH_PFN_OFFSET) * sizeof(struct page)), in bootmem_init()
300 (unsigned long)(PFN_UP(ramstart) - ARCH_PFN_OFFSET)); in bootmem_init()
350 return -EINVAL; in early_parse_mem()
361 memblock_end_of_DRAM() - memblock_start_of_DRAM()); in early_parse_mem()
383 return -EINVAL; in early_parse_memmap()
393 return -EINVAL; in early_parse_memmap()
400 return -EINVAL; in early_parse_memmap()
407 return -EINVAL; in early_parse_memmap()
414 return -EINVAL; in early_parse_memmap()
432 elfcorehdr_size = end - elfcorehdr_addr; in mips_reserve_vmcore()
439 (unsigned long)elfcorehdr_size >> 10, (unsigned long)elfcorehdr_addr >> 10); in mips_reserve_vmcore()
451 unsigned long long total_mem; in mips_parse_crashkernel()
452 unsigned long long crash_size, crash_base; in mips_parse_crashkernel()
470 pr_warn("crashkernel reservation failed - No suitable area found.\n"); in mips_parse_crashkernel()
474 unsigned long long start; in mips_parse_crashkernel()
486 crashk_res.end = crash_base + crash_size - 1; in mips_parse_crashkernel()
502 (unsigned long)(resource_size(&crashk_res) >> 20), in request_crashkernel()
503 (unsigned long)(crashk_res.start >> 20)); in request_crashkernel()
509 phys_addr_t size = __pa_symbol(&_end) - start; in check_kernel_sections_mem()
530 static int __init bootcmdline_scan_chosen(unsigned long node, const char *uname, in bootcmdline_scan_chosen()
558 * trivial - we simply use the built-in command line unconditionally & in bootcmdline_init()
567 * If the user specified a built-in command line & in bootcmdline_init()
568 * MIPS_CMDLINE_BUILTIN_EXTEND, then the built-in command line is in bootcmdline_init()
599 * If the user specified a built-in command line & we didn't already in bootcmdline_init()
608 * arch_mem_init - initialize memory management subsystem
625 * get away without any kind of memory allocator. To keep old code from
642 pr_info("User-defined physical RAM map overwrite\n"); in arch_mem_init()
672 * make sparse_init() using top-down allocation. in arch_mem_init()
684 __pa_symbol(&__nosave_end) - __pa_symbol(&__nosave_begin)); in arch_mem_init()
698 code_resource.end = __pa_symbol(&_etext) - 1; in resource_init()
700 data_resource.end = __pa_symbol(&_edata) - 1; in resource_init()
702 bss_resource.end = __pa_symbol(&__bss_stop) - 1; in resource_init()
712 res->start = start; in resource_init()
718 res->end = end - 1; in resource_init()
719 res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY; in resource_init()
720 res->name = "System RAM"; in resource_init()
725 * We don't know which RAM region contains kernel data, in resource_init()
802 unsigned long kernelsp[NR_CPUS];
803 unsigned long fw_arg0, fw_arg1, fw_arg2, fw_arg3;