更新软件代码

This commit is contained in:
Ruige Lee
2025-01-15 11:44:30 +08:00
parent f12bc41c52
commit 074321ae58
8 changed files with 49 additions and 75 deletions

View File

@@ -9,8 +9,7 @@
_prog_start:
li sp, 0
picorv32_maskirq_insn(zero, zero)
li sp, 0x40001000
call main
ecall
@@ -21,34 +20,13 @@ _prog_start:
.balign 32
.section .trap_entry, "ax", %progbits
trap_entry:
# q0 return address
# q1 bitmask of all IRQ to be handled, may be more than one IRQ
# q2 q3 unused, can be use as temp storage register
# q Without the q-registers, the irq return address will be stored in x3 (gp) and the IRQ bitmask in x4 (tp),
# addi x15, x4, 0
or sp, sp, x4
picorv32_retirq_insn()