This commit is contained in:
qiyongshuang
2026-01-07 10:43:29 +08:00
parent 6209b6e7f9
commit d161f84c90
551 changed files with 23169 additions and 1518 deletions
@@ -56,7 +56,7 @@
*/
/* Save caller registers */
.macro SAVE_CONTEXT
csrrw sp, CSR_MSCRATCH, sp /* 把中断栈给sp,并把线程栈存到mscratch */
csrrw sp, CSR_MSCRATCH, sp
/* Allocate stack space for context saving */
#ifndef __riscv_32e
addi sp, sp, -20*REGBYTES
@@ -120,7 +120,7 @@
/* De-allocate the stack space */
addi sp, sp, 14*REGBYTES
#endif /* __riscv_32e */
csrrw sp, CSR_MSCRATCH, sp /* 退出后把线程栈给sp,把中断栈存入mscratch */
csrrw sp, CSR_MSCRATCH, sp
.endm
@@ -155,7 +155,7 @@ irq_entry:
/* Critical section with interrupts disabled */
DISABLE_MIE
/*************************/
/* jal irq_handler */ /* 跳转到中断处理函数 */
/* jal irq_handler */
/*************************/
la t0, g_intCount
lw t1, 0(t0)