[libcpu/risc-v/virt64]: fix parameter for call handle_trap (#6042)

This commit is contained in:
rewine 2022-07-10 17:48:57 +08:00 committed by GitHub
parent e36e3fda0c
commit 825b9ffbc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -114,8 +114,9 @@ trap_entry:
/* handle interrupt */
call rt_interrupt_enter
csrr a0, SRC_XCAUSE
csrr a1, SRC_XEPC
mv a2, s0
csrr a1, SRC_XTVAL
csrr a2, SRC_XEPC
mv a3, s0
call handle_trap
call rt_interrupt_leave