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