增加汇编代码,使用汇编模式和使用C语言的测试用例效果现在基本一样了
This commit is contained in:
@@ -180,14 +180,17 @@ isr_tx1_deq_hdl:
|
|||||||
|
|
||||||
isr_rx0_enq_hdl:
|
isr_rx0_enq_hdl:
|
||||||
lw x17, RX0_ReadRxFifo(REG_TL2CDR_BASE)
|
lw x17, RX0_ReadRxFifo(REG_TL2CDR_BASE)
|
||||||
bnez x21, 1f
|
bnez x21, 1f //if x21 != 0 then goto 1f
|
||||||
srli x16, x17, 20
|
srli x16, x17, 20
|
||||||
li x18, 8
|
add x16, x16, REG_4
|
||||||
add x16, x16, x18
|
mv x20, x16
|
||||||
|
add x16, x16, REG_4
|
||||||
sw x16, TX1_WriteTxLen(REG_TL2CDR_BASE)
|
sw x16, TX1_WriteTxLen(REG_TL2CDR_BASE)
|
||||||
1:
|
1:
|
||||||
|
bge x21, x20, 1f
|
||||||
add x21, x21, REG_4
|
add x21, x21, REG_4
|
||||||
sw x17, TX1_WriteTxFifo(REG_TL2CDR_BASE)
|
sw x17, TX1_WriteTxFifo(REG_TL2CDR_BASE)
|
||||||
|
1:
|
||||||
mret
|
mret
|
||||||
|
|
||||||
isr_rx1_enq_hdl:
|
isr_rx1_enq_hdl:
|
||||||
|
|||||||
Reference in New Issue
Block a user