blob: 8ddf4ef30d1d919c743d2cf44e83ddc65845f5eb [file] [log] [blame]
Sjoerd Simonsdd2d29a2015-04-13 22:54:20 +02001/*
2 * Copyright (c) 2011 The Chromium OS Authors.
3 * SPDX-License-Identifier: GPL-2.0+
4 */
5
6#include <common.h>
7#include <asm/io.h>
8
9DECLARE_GLOBAL_DATA_PTR;
10
11int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
12{
13 if (flag & (BOOTM_STATE_OS_GO | BOOTM_STATE_OS_FAKE_GO)) {
14 bootstage_mark(BOOTSTAGE_ID_RUN_OS);
15 printf("## Transferring control to Linux (at address %08lx)...\n",
16 images->ep);
17 reset_cpu(0);
18 }
19
20 return 0;
21}