From a6386f74b821e34e86f1853b539b3140db7ad406 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 31 Jan 2017 13:58:34 +1100 Subject: [PATCH] stmhal/pendsv: Fill in comments about what the stack contains. --- stmhal/pendsv.c | 24 ++++++++++++------------ 1 file 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]: ?