Hi Rumen,
I tried your code snippets and attaching the RAM dataspace worked for me with
these attributes:
Region_map::Attr ram_ds_attributes{.size = OBJECT_SPACE_SIZE,
.offset = 0,
.use_at = true,
.at = 0,
.executable = true,
.writeable = true};
_obj_space.attach(env.ram().alloc(OBJECT_SPACE_SIZE), ram_ds_attributes)
0x80000000 0xc0000000 0x40000000 0x0 rwxs
/tmp/genode-1000/ds-73 (deleted)
On 24.07.25 22:52, Rumen Mitov wrote:
> Also, is this attachment necessary? It is not used in the rm_nested code
> (lines 247-259):
> https://github.com/genodelabs/genode/blob/f1e85c0db8023ce481a40f85d4cba03f3dc63b27/repos/base/src/test/rm_nested/main.cc#L4.
The attachment is not necessary, but without it the region is just reserved
with permissions ---p
and accessing it should trigger a page fault. Handling the page fault in the
component or
attaching additional nested region maps doesn't seem to be supported on
base-linux, though,
so you'd need to use a different kernel for that.
Christian
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Archived at
https://lists.genode.org/mailman3/hyperkitty/list/[email protected]/message/ECKCZ7RCPTPH4JAWIT7QZYWXTRFNNGQK/