summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/pendsv.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-01-31 13:58:34 +1100
committerDamien George <damien.p.george@gmail.com>2017-01-31 13:58:34 +1100
commita6386f74b821e34e86f1853b539b3140db7ad406 (patch)
tree56bbd78f226e65c0d9f5e7c9f01f150be091e30c /stmhal/pendsv.c
parent7d8c79ab6d6b714f60ad07189f29e526cc0aee9a (diff)
downloadmicropython-a6386f74b821e34e86f1853b539b3140db7ad406.tar.gz
micropython-a6386f74b821e34e86f1853b539b3140db7ad406.zip
stmhal/pendsv: Fill in comments about what the stack contains.
Diffstat (limited to 'stmhal/pendsv.c')
-rw-r--r--stmhal/pendsv.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/stmhal/pendsv.c b/stmhal/pendsv.c
index ff4480eed3..61fe954390 100644
--- a/stmhal/pendsv.c
+++ b/stmhal/pendsv.c
@@ -70,21 +70,21 @@ void pendsv_isr_handler(void) {
// on entry to this (naked) function, stack has the following layout:
//
// stack layout with DEBUG disabled:
- // sp[6]: pc
- // sp[5]: ?
- // sp[4]: ?
- // sp[3]: ?
- // sp[2]: ?
- // sp[1]: ?
+ // sp[6]: pc=r15
+ // sp[5]: lr=r14
+ // sp[4]: r12
+ // sp[3]: r3
+ // sp[2]: r2
+ // sp[1]: r1
// sp[0]: r0
//
// stack layout with DEBUG enabled:
- // sp[8]: pc
- // sp[7]: lr
- // sp[6]: ?
- // sp[5]: ?
- // sp[4]: ?
- // sp[3]: ?
+ // sp[8]: pc=r15
+ // sp[7]: lr=r14
+ // sp[6]: r12
+ // sp[5]: r3
+ // sp[4]: r2
+ // sp[3]: r1
// sp[2]: r0
// sp[1]: 0xfffffff9
// sp[0]: ?