There is a fairly simplistic memory allocator in the form of a DMA allocator in libsel4utils that operates basically as you describe. See:
https://github.com/seL4/seL4_libs/blob/master/libsel4utils/include/sel4utils/page_dma.h
It requires you to be using various other abstractions for allocations (vka_t) and address space management (vspace_t) that are found in our libraries, but then gives you a ps_dma_man_t (https://github.com/seL4/util_libs/blob/master/libplatsupport/include/platsupport/io.h#L195)
interface that, whilst aims to be for DMA management, can give you contiguous mappings.
Adrian
On Wed 30-Nov-2016 9:30 AM, Jeff Waugh wrote:
_______________________________________________
Devel mailing list
Devel@sel4.systems
https://sel4.systems/lists/listinfo/devel