blob: 161335abee18f17fd477ab4c0c4f2edf396b02b1 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Rick Chen6eedd922017-12-26 13:55:49 +08002/*
3 * Copyright (C) 2017 Andes Technology Corporation
4 * Rick Chen, Andes Technology Corporation <rick@andestech.com>
Rick Chen6eedd922017-12-26 13:55:49 +08005 */
6
Tom Rinidee15a92024-04-30 20:40:48 -06007#include <linux/types.h>
8#include <asm/u-boot-riscv.h>
Rick Chen6eedd922017-12-26 13:55:49 +08009
Rick Chen6eedd922017-12-26 13:55:49 +080010unsigned long do_go_exec(ulong (*entry)(int, char * const []),
Simon Glassed38aef2020-05-10 11:40:03 -060011 int argc, char *const argv[])
Rick Chen6eedd922017-12-26 13:55:49 +080012{
13 cleanup_before_linux();
14
15 return entry(argc, argv);
16}