1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
6 #include <linux/init.h>
7 #include <linux/memblock.h>
8 #include <linux/initrd.h>
15 /* Changed by uml_initrd_setup, which is a setup */
16 static char *initrd __initdata = NULL;
18 int __init read_initrd(void)
20 unsigned long long size;
26 area = uml_load_file(initrd, &size);
30 initrd_start = (unsigned long) area;
31 initrd_end = initrd_start + size;
35 static int __init uml_initrd_setup(char *line, int *add)
42 __uml_setup("initrd=", uml_initrd_setup,
43 "initrd=<initrd image>\n"
44 " This is used to boot UML from an initrd image. The argument is the\n"
45 " name of the file containing the image.\n\n"