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",
107 ((unsigned long long) size) / SZ_1M,
108 (unsigned long long) start,
109 ((unsigned long long) sz_min) / SZ_1M,
110 ((unsigned long long) sz_max) / SZ_1M);
122 unsigned long start = memparse(p, &p);
143 static unsigned long __init init_initrd(void)
145 unsigned long end;
148 * Board specific code or command line parser should have
163 * 64-bits values if the kernel has been built in pure
164 * 32-bit. We need also to switch from KSEG0 to XKPHYS
165 * addresses now, so the code can now safely use __pa().
168 initrd_end = (unsigned long)__va(end);
169 initrd_start = (unsigned long)__va(__pa(initrd_start));
204 unsigned long i;
215 unsigned long size = initrd_end - initrd_start;
235 printk(KERN_CONT " - disabling initrd\n");
242 static unsigned long __init init_initrd(void)
268 unsigned long start, end;
276 * for bootmem setup initially, rely on the end-of-kernel-code
284 __pa_symbol(&_end) - __pa_symbol(&_text));
292 * Reserve any memory between the start of RAM and PHYS_OFFSET
295 memblock_reserve(PHYS_OFFSET, ramstart - PHYS_OFFSET);
299 (unsigned long)((PFN_UP(ramstart) - ARCH_PFN_OFFSET) * sizeof(struct page)),
300 (unsigned long)(PFN_UP(ramstart) - ARCH_PFN_OFFSET));
350 return -EINVAL;
361 memblock_end_of_DRAM() - memblock_start_of_DRAM());
383 return -EINVAL;
393 return -EINVAL;
400 return -EINVAL;
407 return -EINVAL;
414 return -EINVAL;
432 elfcorehdr_size = end - elfcorehdr_addr;
439 (unsigned long)elfcorehdr_size >> 10, (unsigned long)elfcorehdr_addr >> 10);
451 unsigned long long total_mem;
452 unsigned long long crash_size, crash_base;
470 pr_warn("crashkernel reservation failed - No suitable area found.\n");
474 unsigned long long start;
486 crashk_res.end = crash_base + crash_size - 1;
502 (unsigned long)(resource_size(&crashk_res) >> 20),
503 (unsigned long)(crashk_res.start >> 20));
509 phys_addr_t size = __pa_symbol(&_end) - start;
530 static int __init bootcmdline_scan_chosen(unsigned long node, const char *uname,
558 * trivial - we simply use the built-in command line unconditionally &
567 * If the user specified a built-in command line &
568 * MIPS_CMDLINE_BUILTIN_EXTEND, then the built-in command line is
599 * If the user specified a built-in command line & we didn't already
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");
672 * make sparse_init() using top-down allocation.
684 __pa_symbol(&__nosave_end) - __pa_symbol(&__nosave_begin));
698 code_resource.end = __pa_symbol(&_etext) - 1;
700 data_resource.end = __pa_symbol(&_edata) - 1;
702 bss_resource.end = __pa_symbol(&__bss_stop) - 1;
709 res->start = start;
715 res->end = end - 1;
716 res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
717 res->name = "System RAM";
722 * We don't know which RAM region contains kernel data,
799 unsigned long kernelsp[NR_CPUS];
800 unsigned long fw_arg0, fw_arg1, fw_arg2, fw_arg3;