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