From 0a091fd303f065602735b6d99ce504e0f06b0c6c Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Wed, 24 May 2023 14:32:39 +0800 Subject: [PATCH] bsp,abstract-machine: add hello application through initcall --- bsp/abstract-machine/src/hello.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bsp/abstract-machine/src/hello.c diff --git a/bsp/abstract-machine/src/hello.c b/bsp/abstract-machine/src/hello.c new file mode 100644 index 0000000..cda4015 --- /dev/null +++ b/bsp/abstract-machine/src/hello.c @@ -0,0 +1,8 @@ +#include +#include + +static int hello() { + printf("Hello RISC-V!\n"); + return 0; +} +INIT_ENV_EXPORT(hello);