сильную raw_trap_handler объявила во freeRTOS, чтобы trap перехватывался операционной системой
This commit is contained in:
1 parent
6f84c00718
commit
f2ab0fc367
2 files changed
+4
-6
No files matched your search
@@ -81,10 +81,10 @@ definitions. */
|
||||
|
||||
.global xPortStartFirstTask
|
||||
.global pxPortInitialiseStack
|
||||
.global freertos_risc_v_trap_handler
|
||||
.global freertos_risc_v_exception_handler
|
||||
.global freertos_risc_v_interrupt_handler
|
||||
.global freertos_risc_v_mtimer_interrupt_handler
|
||||
.global raw_trap_handler
|
||||
|
||||
.extern vTaskSwitchContext
|
||||
.extern xTaskIncrementTick
|
||||
@@ -329,7 +329,7 @@ exit_without_context_switch:
|
||||
|
||||
.section .ram_text
|
||||
.align 8
|
||||
freertos_risc_v_trap_handler:
|
||||
raw_trap_handler: /*Intercept trap from weak function from crt0.s*/
|
||||
portcontextSAVE_CONTEXT_INTERNAL
|
||||
|
||||
csrr a0, mcause
|
||||
@@ -358,7 +358,6 @@ handle_interrupt:
|
||||
bne a0, t1, application_interrupt_handler
|
||||
|
||||
portUPDATE_MTIMER_COMPARE_REGISTER
|
||||
call toggleTestPin
|
||||
call xTaskIncrementTick
|
||||
beqz a0, processed_source /* Don't switch context if incrementing tick didn't unblock a task. */
|
||||
call vTaskSwitchContext
|
||||
|
||||
Reference in new issue
Block a user