Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 8 months ago.
Mbed OS 5.0, uVisor: What is a Page, what's the purpose behind, and how can we use it correctly?
I'm intersted in the new uVisor within mbed OS, I was reading the uvisor-rtos documentation, I've seen lot's features compared to the old version within mbed OS 3.0 like pages allocation and RPC, for RPC, if I really get it right, it's like the new way of communicating two boxes securely, it substitutes the secure_gateway, but for the Pages, still can't figure out what is exactly, and how can we use it within our applications? Thank you.
1 Answer
7 years, 8 months ago.
Hi,
The use-case for the uVisor page heap is described in detail here: https://github.com/ARMmbed/uvisor/blob/master/docs/api/manual/UseCases.md#per-thread-memory-allocator
TL;DR: It allows you to bind a heap to a thread for its lifetime. Every malloc inside that thread now goes to the page-backed heap. A use case would be worker threads that temporarily need a lot of secure heap.
Niklas