This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What are the real advantages of using two stack pointers and different privilege levels on a MCU with no MMU?

The added overhead for context-switching and SVC handling pays off? With all threads sharing the same address space, user threads can overrun kernel stacks if the code says so.
Could anyone with more expertise elaborate on that?

Thank you very much.

Parents
  • Generally speaking, defining a privileged stack for the RTOS, and a separate (unprivileged) stack for the apps makes sense.

    However it is not a requirement from the processor point of view (though some RTOS implementations may enforce it).

Reply
  • Generally speaking, defining a privileged stack for the RTOS, and a separate (unprivileged) stack for the apps makes sense.

    However it is not a requirement from the processor point of view (though some RTOS implementations may enforce it).

Children
No data