Cortex M3 processor has two stack pointer: PSP, MSP. In some complex applications, user program use PSP pointed to user program stack. Exception handler use MSP pointed to main stack.
The question is: There is a interrupt happened when user program is running. Before entering into the interrupt handler, the R0-R3, R12, LR, PC, and xPSR registers would be pushed into stack. But which stack is used to store these registers ?