Skip to content

Commit a6386f7

Browse files
committed
stmhal/pendsv: Fill in comments about what the stack contains.
1 parent 7d8c79a commit a6386f7

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

stmhal/pendsv.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,21 @@ void pendsv_isr_handler(void) {
7070
// on entry to this (naked) function, stack has the following layout:
7171
//
7272
// stack layout with DEBUG disabled:
73-
// sp[6]: pc
74-
// sp[5]: ?
75-
// sp[4]: ?
76-
// sp[3]: ?
77-
// sp[2]: ?
78-
// sp[1]: ?
73+
// sp[6]: pc=r15
74+
// sp[5]: lr=r14
75+
// sp[4]: r12
76+
// sp[3]: r3
77+
// sp[2]: r2
78+
// sp[1]: r1
7979
// sp[0]: r0
8080
//
8181
// stack layout with DEBUG enabled:
82-
// sp[8]: pc
83-
// sp[7]: lr
84-
// sp[6]: ?
85-
// sp[5]: ?
86-
// sp[4]: ?
87-
// sp[3]: ?
82+
// sp[8]: pc=r15
83+
// sp[7]: lr=r14
84+
// sp[6]: r12
85+
// sp[5]: r3
86+
// sp[4]: r2
87+
// sp[3]: r1
8888
// sp[2]: r0
8989
// sp[1]: 0xfffffff9
9090
// sp[0]: ?

0 commit comments

Comments
 (0)