diff options
author | Rick Chen <rick@andestech.com> | 2017-12-26 13:55:49 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-12 08:05:12 -0500 |
commit | 8bbb2909cbce083f35317d6a7279d02a82f21892 (patch) | |
tree | 70705499ed43435b1cf8e11f4f2cfa75133a64d1 /arch/riscv/lib/boot.c | |
parent | e8e39597a33cc53aacbaf4ef5cae60ed86d6a20a (diff) | |
download | u-boot-8bbb2909cbce083f35317d6a7279d02a82f21892.zip u-boot-8bbb2909cbce083f35317d6a7279d02a82f21892.tar.gz u-boot-8bbb2909cbce083f35317d6a7279d02a82f21892.tar.bz2 |
riscv: nx25: lib: Add relative lib funcs to support RISC-V
Add makefile, interrupts.c and boot.c,... functions
to support RISC-V arch.
Signed-off-by: Rick Chen <rick@andestech.com>
Signed-off-by: Rick Chen <rickchen36@gmail.com>
Signed-off-by: Greentime Hu <green.hu@gmail.com>
Cc: Padmarao Begari <Padmarao.Begari@microsemi.com>
Diffstat (limited to 'arch/riscv/lib/boot.c')
-rw-r--r-- | arch/riscv/lib/boot.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/riscv/lib/boot.c b/arch/riscv/lib/boot.c new file mode 100644 index 0000000..39ba9b4 --- /dev/null +++ b/arch/riscv/lib/boot.c @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2017 Andes Technology Corporation + * Rick Chen, Andes Technology Corporation <rick@andestech.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> +#include <command.h> + +DECLARE_GLOBAL_DATA_PTR; + +unsigned long do_go_exec(ulong (*entry)(int, char * const []), + int argc, char * const argv[]) +{ + cleanup_before_linux(); + + return entry(argc, argv); +} |