中断模式软件完成

This commit is contained in:
RuigeLee
2024-10-29 09:33:29 +08:00
parent 7bcd0aaca0
commit 57c6c15c29
4 changed files with 5 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ main:
li x15, 0 #
lw x7, 0(x5) # cdr_0_tx_status
andi x7, x7, 0x2 # 11
beqz x7, 2b # 102
bnez x7, 2b # 102
3:
# cdr_0_tx_txFifo0x5532

View File

@@ -38,7 +38,7 @@ _prog_start:
.balign 32
.section .trap_entry
.section .trap_entry, "ax", %progbits
trap_entry:
# q0 return address
# q1 bitmask of all IRQ to be handled, may be more than one IRQ