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