1 // SPDX-License-Identifier: GPL-2.0+
4 * Renesas Solutions Corp.
5 * Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
9 * Linux SuperH zImage loading and boot
17 #include <asm/zimage.h>
19 int do_sh_zimageboot(struct cmd_tbl *cmdtp, int flag, int argc,
22 ulong (*zboot_entry)(int, char * const []) = NULL;
24 unsigned char *param = NULL;
31 /* argv[1] holds the address of the zImage */
33 /* argv[2] holds the address of zero page */
40 zboot_entry = (ulong (*)(int, char * const []))simple_strtoul(s0, NULL, 16);
44 param = (unsigned char*)simple_strtoul(s1, NULL, 16);
46 /* Linux kernel command line */
47 cmdline = (char *)param + COMMAND_LINE;
48 bootargs = env_get("bootargs");
51 /* cppcheck-suppress nullPointer */
52 memset(param, 0, 0x1000);
55 strcpy(cmdline, bootargs);
65 zimageboot, 3, 0, do_sh_zimageboot,
66 "Boot zImage for Renesas SH",