Right now all code executed by the processor uses the msp register as source for the stack pointer. msp should only be used by the kernel, during system startup and inside interrupt handlers, while user mode tasks should use psp as source register for the stack pointer.
Right now all code executed by the processor uses the
mspregister as source for the stack pointer.mspshould only be used by the kernel, during system startup and inside interrupt handlers, while user mode tasks should usepspas source register for the stack pointer.