diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-12 10:43:33 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-15 10:26:03 +0100 |
commit | 296cd8d6380f775d0f7b59bd78d3421327ebbe9e (patch) | |
tree | 5c7f5eb5e99e9cc41babcda2675637710918bf66 /arch/arm/lib/bootu.c | |
parent | 4c41e245cfaf9f85af31c26394cf6549392f89f5 (diff) | |
download | barebox-296cd8d6380f775d0f7b59bd78d3421327ebbe9e.tar.gz barebox-296cd8d6380f775d0f7b59bd78d3421327ebbe9e.tar.xz |
ARM: call start_linux directly with initrd start/size and oftree
whoever calls this function is not necessarily aware of a struct
image_data, so remove the dependency from the function.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib/bootu.c')
-rw-r--r-- | arch/arm/lib/bootu.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/lib/bootu.c b/arch/arm/lib/bootu.c index e97ded0e47..89d793af9a 100644 --- a/arch/arm/lib/bootu.c +++ b/arch/arm/lib/bootu.c @@ -3,12 +3,14 @@ #include <fs.h> #include <fcntl.h> #include <errno.h> +#include <of.h> #include <asm/armlinux.h> static int do_bootu(struct command *cmdtp, int argc, char *argv[]) { int fd; void *kernel = NULL; + void *oftree = NULL; if (argc != 2) { barebox_cmd_usage(cmdtp); @@ -22,7 +24,11 @@ static int do_bootu(struct command *cmdtp, int argc, char *argv[]) if (!kernel) kernel = (void *)simple_strtoul(argv[1], NULL, 0); - start_linux(kernel, 0, NULL); +#ifdef CONFIG_OFTREE + oftree = of_get_fixed_tree(); +#endif + + start_linux(kernel, 0, 0, 0, oftree); return 1; } |