diff --git a/arch/risc-v/risc-v3a/rv32i/gcc/port_s.S b/arch/risc-v/risc-v3a/rv32i/gcc/port_s.S index 2a1ba9ffc94c3498c563705c005b441a62535927..02a3c88fda6c988e7d483ba24de8f1e11feb08df 100644 --- a/arch/risc-v/risc-v3a/rv32i/gcc/port_s.S +++ b/arch/risc-v/risc-v3a/rv32i/gcc/port_s.S @@ -143,8 +143,8 @@ restore_context: /* just switch at Software interrupt */ .align 2 -.global SW_handler -SW_handler: +.global SW_Handler +SW_Handler: #if ARCH_RISCV_FPU addi sp, sp, -128 fsw f0, __reg_f0_OFFSET(sp) diff --git a/board/TencentOS_Tiny_CH32V307_EVB/Startup/startup_ch32v30x.S b/board/TencentOS_Tiny_CH32V307_EVB/Startup/startup_ch32v30x.S index 33bbe01f92afdb6ca960d63a33b0ae6325dd5bb5..f833ee0e2a446b8515cf0e4d109f3e325a382872 100644 --- a/board/TencentOS_Tiny_CH32V307_EVB/Startup/startup_ch32v30x.S +++ b/board/TencentOS_Tiny_CH32V307_EVB/Startup/startup_ch32v30x.S @@ -42,7 +42,7 @@ _vector_base: .word 0 .word SysTick_Handler /* SysTick */ .word 0 - .word SW_handler /* SW */ + .word SW_Handler /* SW */ .word 0 /* External Interrupts */ .word WWDG_IRQHandler /* Window Watchdog */ @@ -143,7 +143,7 @@ _vector_base: .weak Ecall_U_Mode_Handler /* Ecall U Mode */ .weak Break_Point_Handler /* Break Point */ .weak SysTick_Handler /* SysTick */ - .weak SW_handler /* SW */ + .weak SW_Handler /* SW */ .weak WWDG_IRQHandler /* Window Watchdog */ .weak PVD_IRQHandler /* PVD through EXTI Line detect */ .weak TAMPER_IRQHandler /* TAMPER */ @@ -239,7 +239,7 @@ Ecall_M_Mode_Handler: 1: j 1b Ecall_U_Mode_Handler: 1: j 1b Break_Point_Handler: 1: j 1b SysTick_Handler: 1: j 1b -SW_handler: 1: j 1b +SW_Handler: 1: j 1b WWDG_IRQHandler: 1: j 1b PVD_IRQHandler: 1: j 1b TAMPER_IRQHandler: 1: j 1b