seoul: attach executable memory as such

Issue #1723
This commit is contained in:
Alexander Boettcher 2017-10-18 14:58:15 +02:00 committed by Christian Helmuth
parent 1bbe34540f
commit db0589727a
2 changed files with 9 additions and 2 deletions

View File

@ -230,7 +230,7 @@ append_if [expr $use_nic_session && $use_nic_bridge] config {
}
append_if $use_framebuffer config {
<start name="fb_drv" priority="-1">
<start name="fb_drv" priority="-1" caps="120">
<resource name="RAM" quantum="8M"/>
<provides><service name="Framebuffer"/></provides>
<route>

View File

@ -225,7 +225,14 @@ class Guest_memory
/*
* RAM used as backing store for guest-physical memory
*/
_local_addr = env.rm().attach(_ds);
enum {
MAX_SIZE = 0, OFFSET = 0, ANY_LOCAL_ADDRESS = false,
EXECUTABLE = true
};
_local_addr = env.rm().attach(_ds, MAX_SIZE, OFFSET,
ANY_LOCAL_ADDRESS, nullptr,
EXECUTABLE);
_fb_addr = env.rm().attach_at(_fb_ds,
((Genode::addr_t) _local_addr)+backing_store_size-fb_size);
}