mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-16 05:31:16 +00:00
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>
32 lines
338 B
ArmAsm
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
|
|
|