Files
acrn-hypervisor/hypervisor/arch/riscv/dummy_entry.S
Yifan Liu 1a2d5b9eed hv: riscv: Add riscv build skeleton and hello world binary
This commit adds riscv build skeleton and adds some dummy files that
prints out hello world.

To build riscv acrn.out/acrn.bin, simply:

make hypervisor \
    BOARD=<any existing board> \
    SCENARIO=<any existing scenario> \
    ARCH=riscv

We still need to specify board and scenario as those were required by
project level makefile.

Tracked-On: #8782
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
2025-09-03 14:41:33 +08:00

32 lines
338 B
ArmAsm

.section .text
.global _start
_start:
csrci sstatus, 0x2
li sp, 0x81010000
call print_hello_world
wait_loop:
wfi
j wait_loop
.global sbi_call
sbi_call:
mv t0, a0
mv t1, a1
mv a0, a2
mv a1, a3
mv a2, a4
mv a3, a5
mv a4, a6
mv a5, a7
mv a6, t1
mv a7, t0
ecall
ret