We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b957731 commit 03aba96Copy full SHA for 03aba96
1 file changed
sch/port/stm32f4xx/sch_context_change.s
@@ -6,6 +6,23 @@
6
.equ __sch_icsr, (__sch_scs_base + __sch_icsr_offset)
7
.equ __sch_icsr_pendvset, (1 << 28)
8
9
+.section .text.PendSV_Handler
10
+.global PendSV_Handler
11
+.type PendSV_Handler, %function
12
+
13
+@ -----------------------------------------------------------------------------
14
15
+PendSV_Handler:
16
+ push {lr}
17
+ ldr r0, =sch_system_tasks_ready_set
18
+ ldr r0, [r0
19
+ bl sch_find_most_significant_task
20
+ cbz r0, .exit_pendsv
21
+ sub r0, r0, #1
22
+ bl sch_call_dispatch[cite: 17]
23
+.exit_pendsv:
24
+ pop {pc}
25
26
@ -----------------------------------------------------------------------------
27
28
.section .data
0 commit comments