mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Rework host/target interface to use ecall and proper syscalls instead of CSRs
This commit is contained in:
parent
a305fce466
commit
751f068486
26 changed files with 360 additions and 364 deletions
|
|
@ -10,7 +10,7 @@ CFLAGS+=-g -Os -march=rv32ima_zicsr -mabi=ilp32 -static
|
|||
LDFLAGS:= -T ../linker.ld -nostdlib -Wl,--gc-sections
|
||||
LIBS:= #-lgcc # needed for softfp
|
||||
|
||||
SRCS=hello-asm.s
|
||||
SRCS=hello-asm.S
|
||||
|
||||
all:
|
||||
${PREFIX}gcc -o ${PROJECT}.elf ${CFLAGS} ${LDFLAGS} ${SRCS} ${LIBS}
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
.section .initial_jump , "ax", %progbits
|
||||
.global _start
|
||||
_start:
|
||||
la a5, str
|
||||
csrrw zero,0x13b,a5 # println
|
||||
csrwi 0x138,0 # halt
|
||||
str:
|
||||
.ascii "Hi"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue