]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/sh/lib/zimageboot.c
3 * Renesas Solutions Corp.
4 * Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
6 * SPDX-License-Identifier: GPL-2.0+
10 * Linux SuperH zImage loading and boot
15 #include <asm/zimage.h>
17 int do_sh_zimageboot (cmd_tbl_t
*cmdtp
, int flag
, int argc
, char * const argv
[])
19 ulong (*zboot_entry
)(int, char * const []) = NULL
;
21 unsigned char *param
= NULL
;
28 /* argv[1] holds the address of the zImage */
30 /* argv[2] holds the address of zero page */
37 zboot_entry
= (ulong (*)(int, char * const []))simple_strtoul(s0
, NULL
, 16);
41 param
= (unsigned char*)simple_strtoul(s1
, NULL
, 16);
43 /* Linux kernel command line */
44 cmdline
= (char *)param
+ COMMAND_LINE
;
45 bootargs
= getenv("bootargs");
48 memset(param
, 0, 0x1000);
51 strcpy(cmdline
, bootargs
);
61 zimageboot
, 3, 0, do_sh_zimageboot
,
62 "Boot zImage for Renesas SH",