Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
rick | f1113c9 | 2017-05-18 14:37:53 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2011 Andes Technology Corporation |
| 4 | * Rick Chen, Andes Technology Corporation <rick@andestech.com> |
rick | f1113c9 | 2017-05-18 14:37:53 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <command.h> |
| 10 | |
rick | f1113c9 | 2017-05-18 14:37:53 +0800 | [diff] [blame] | 11 | unsigned long do_go_exec(ulong (*entry)(int, char * const []), |
| 12 | int argc, char * const argv[]) |
| 13 | { |
| 14 | cleanup_before_linux(); |
| 15 | |
| 16 | return entry(argc, argv); |
| 17 | } |