3 * Renesas Solutions Corp.
4 * Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
6 * See file CREDITS for list of people who contributed to this
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26 * Linux SuperH zImage loading and boot
31 #include <asm/zimage.h>
33 int do_sh_zimageboot (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
35 ulong (*zboot_entry)(int, char * const []) = NULL;
37 unsigned char *param = NULL;
44 /* argv[1] holds the address of the zImage */
46 /* argv[2] holds the address of zero page */
53 zboot_entry = (ulong (*)(int, char * const []))simple_strtoul(s0, NULL, 16);
57 param = (unsigned char*)simple_strtoul(s1, NULL, 16);
59 /* Linux kernel command line */
60 cmdline = (char *)param + COMMAND_LINE;
61 bootargs = getenv("bootargs");
64 memset(param, 0, 0x1000);
67 strcpy(cmdline, bootargs);
77 zimageboot, 3, 0, do_sh_zimageboot,
78 "Boot zImage for Renesas SH",