RPCEmu on Genode

Michael Grunditz michael.grunditz at gmail.com
Thu Oct 15 14:13:48 CEST 2020


On Thu, 15 Oct 2020 at 13:33, Norman Feske <norman.feske at genode-labs.com> wrote:

> You will have to call 'Framebuffer::Session::refresh' to inform the GUI
> server about the changed portions of your virtual framebuffer.
>
> > 2) When trying ro use the JIT version Genode complains about non
> > executable memory. Any idea what that might be?
>
> By default, data stored in RAM is not executable on Genode. For the
> instructions generated by the JIT compiler, however, the underlying
> memory must be mapped as executable. In cases like this, you can
> explicitly request executable memory mapping using 'mmap' for allocating
> an anonymous chunk of memory by passing both the MAP_ANONYMOUS and
> PROT_EXEC flags as argument.
>
When I try map to allocate memory by using fd=-1 , I get a error (no
plugin error)

> Should you not use the libc but the raw Genode API, you can create
> executable mappings via 'env.rm().attach_executable' [1].

Might  be possible , my main file is using Genode api. So a call to
that might do the trick,

> [1]
> https://github.com/genodelabs/genode/blob/master/repos/base/include/region_map/region_map.h#L132
>
> Cheers
> Norman
>
> --
> Dr.-Ing. Norman Feske
> Genode Labs
>
> https://www.genode-labs.com · https://genode.org
>
> Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
> Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
>
> _______________________________________________
> Genode users mailing list
> users at lists.genode.org
> https://lists.genode.org/listinfo/users



More information about the users mailing list