On 16.12.20 12:36, Florian Hars wrote:
> And if the latter, the documentation files touched on tock-2.0-dev are
> doc/reference/trd-syscalls.md and doc/Porting_Capsules_2.md, is
> everything one needs to know in there?
Oh, and after reading "4.5 Read-Only Allow" in trd-syscalls several
times I still don't know what it says. Does it explain that you cannot
even share read-only references to flash memory with the kernel because
you can only ever pass references to the writeable address space to
Allow syscalls (and it is in every way except that both sides get
read-only access to the shared memory identical to the Read-Write Allow,
which requires that every byte of the memory is writeable by the app),
or does it explain that the main purpose of Read-Only Allow is to share
data stored in flash with the kernel, as you would otherwise waste RAM?
It looks a bit like a copy and paste accident from the proposal to add
that syscall.
Florian.