尚不明原因的造成了cpu的CoreID初始化错乱,导致了日志文件不能正常分离;简单粗暴地删除一个不想要的初始化语句,用以解决CoreID的错乱问题
This commit is contained in:
@@ -42,12 +42,6 @@ _prog_start:
|
||||
|
||||
.balign 32
|
||||
_rv32i_plic_handle:
|
||||
#if 0 /*RV32的核心自动禁用中断,无需手动禁用*/
|
||||
csrr x16, mstatus # 读取 mstatus 寄存器
|
||||
andi x16, x16, ~(1 << 3) # 清除 MIE 位 (全局中断禁用)
|
||||
csrw mstatus, x16 # 写回 mstatus 寄存器
|
||||
#endif
|
||||
|
||||
lw x23, 0(x17) # x23 = *plic_claim
|
||||
sw x23, 0(x17) # *plic_claim = x23
|
||||
|
||||
@@ -75,6 +69,9 @@ _rv32i_plic_handle:
|
||||
bne x23, x24, 4f #_if (x23 != x24) goto 4f
|
||||
sw x25, 0(x21) #_else
|
||||
#else
|
||||
|
||||
|
||||
|
||||
bne x23, x28, 1f #_if (x23 != x24) goto 1f
|
||||
sw x25, 0(x18) #_else
|
||||
j 4f
|
||||
@@ -92,11 +89,9 @@ _rv32i_plic_handle:
|
||||
3:
|
||||
bne x23, x31, 4f #_if (x23 != x24) goto 4f
|
||||
sw x25, 0(x21) #_else
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
4:
|
||||
#if 0 /*RV32的核心自动启动中断,无需手动启用*/
|
||||
csrr x16, mstatus
|
||||
ori x16, x16, 1<<3
|
||||
csrw mstatus, x16
|
||||
#endif
|
||||
mret
|
||||
|
||||
Reference in New Issue
Block a user