2 * U-boot - bootm.c - misc boot helper functions
4 * Copyright (c) 2005-2008 Analog Devices Inc.
6 * (C) Copyright 2000-2004
7 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
9 * Licensed under the GPL-2 or later.
15 #include <asm/blackfin.h>
17 #ifdef SHARED_RESOURCES
18 extern void swap_to(int device_id);
21 static char *make_command_line(void)
23 char *dest = (char *)CMD_LINE_ADDR;
24 char *bootargs = getenv("bootargs");
29 strncpy(dest, bootargs, 0x1000);
34 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
36 int (*appl) (char *cmdline);
39 if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
42 #ifdef SHARED_RESOURCES
46 appl = (int (*)(char *))images->ep;
48 printf("Starting Kernel at = %x\n", appl);
49 cmdline = make_command_line();