1 parent 7d8c79a commit a6386f7Copy full SHA for a6386f7
1 file changed
stmhal/pendsv.c
@@ -70,21 +70,21 @@ void pendsv_isr_handler(void) {
70
// on entry to this (naked) function, stack has the following layout:
71
//
72
// stack layout with DEBUG disabled:
73
- // sp[6]: pc
74
- // sp[5]: ?
75
- // sp[4]: ?
76
- // sp[3]: ?
77
- // sp[2]: ?
78
- // sp[1]: ?
+ // sp[6]: pc=r15
+ // sp[5]: lr=r14
+ // sp[4]: r12
+ // sp[3]: r3
+ // sp[2]: r2
+ // sp[1]: r1
79
// sp[0]: r0
80
81
// stack layout with DEBUG enabled:
82
- // sp[8]: pc
83
- // sp[7]: lr
84
- // sp[6]: ?
85
86
87
+ // sp[8]: pc=r15
+ // sp[7]: lr=r14
+ // sp[6]: r12
+ // sp[5]: r3
+ // sp[4]: r2
+ // sp[3]: r1
88
// sp[2]: r0
89
// sp[1]: 0xfffffff9
90
// sp[0]: ?
0 commit comments