xref: /openbmc/u-boot/arch/riscv/lib/boot.c (revision e23b19f4)
1 /*
2  * Copyright (C) 2017 Andes Technology Corporation
3  * Rick Chen, Andes Technology Corporation <rick@andestech.com>
4  *
5  * SPDX-License-Identifier:	GPL-2.0+
6  */
7 
8 #include <common.h>
9 #include <command.h>
10 
11 DECLARE_GLOBAL_DATA_PTR;
12 
13 unsigned long do_go_exec(ulong (*entry)(int, char * const []),
14 			 int argc, char * const argv[])
15 {
16 	cleanup_before_linux();
17 
18 	return entry(argc, argv);
19 }
20