2018-05-06 17:58:06 -04:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2017-05-18 14:37:53 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2011 Andes Technology Corporation
|
|
|
|
|
* Rick Chen, Andes Technology Corporation <rick@andestech.com>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
|
#include <command.h>
|
|
|
|
|
|
|
|
|
|
unsigned long do_go_exec(ulong (*entry)(int, char * const []),
|
2020-05-10 11:40:03 -06:00
|
|
|
int argc, char *const argv[])
|
2017-05-18 14:37:53 +08:00
|
|
|
{
|
|
|
|
|
cleanup_before_linux();
|
|
|
|
|
|
|
|
|
|
return entry(argc, argv);
|
|
|
|
|
}
|