stmhal/pendsv: Fill in comments about what the stack contains.
This commit is contained in:
parent
7d8c79ab6d
commit
a6386f74b8
|
@ -70,21 +70,21 @@ void pendsv_isr_handler(void) {
|
||||||
// on entry to this (naked) function, stack has the following layout:
|
// on entry to this (naked) function, stack has the following layout:
|
||||||
//
|
//
|
||||||
// stack layout with DEBUG disabled:
|
// stack layout with DEBUG disabled:
|
||||||
// sp[6]: pc
|
// sp[6]: pc=r15
|
||||||
// sp[5]: ?
|
// sp[5]: lr=r14
|
||||||
// sp[4]: ?
|
// sp[4]: r12
|
||||||
// sp[3]: ?
|
// sp[3]: r3
|
||||||
// sp[2]: ?
|
// sp[2]: r2
|
||||||
// sp[1]: ?
|
// sp[1]: r1
|
||||||
// sp[0]: r0
|
// sp[0]: r0
|
||||||
//
|
//
|
||||||
// stack layout with DEBUG enabled:
|
// stack layout with DEBUG enabled:
|
||||||
// sp[8]: pc
|
// sp[8]: pc=r15
|
||||||
// sp[7]: lr
|
// sp[7]: lr=r14
|
||||||
// sp[6]: ?
|
// sp[6]: r12
|
||||||
// sp[5]: ?
|
// sp[5]: r3
|
||||||
// sp[4]: ?
|
// sp[4]: r2
|
||||||
// sp[3]: ?
|
// sp[3]: r1
|
||||||
// sp[2]: r0
|
// sp[2]: r0
|
||||||
// sp[1]: 0xfffffff9
|
// sp[1]: 0xfffffff9
|
||||||
// sp[0]: ?
|
// sp[0]: ?
|
||||||
|
|
Loading…
Reference in New Issue