base: enable executable memory fault handling

Fixes #1723
This commit is contained in:
Alexander Boettcher
2017-10-13 15:26:33 +02:00
committed by Christian Helmuth
parent 03b8e70d3f
commit db329b02b5
11 changed files with 77 additions and 32 deletions

View File

@ -65,7 +65,8 @@ struct Genode::Mapping : Hw::Mapping
Cache_attribute cacheable,
bool io,
unsigned size_log2,
bool writeable)
bool writeable,
bool executable)
: Hw::Mapping(phys, virt, 1 << size_log2,
{ writeable ? Hw::RW : Hw::RO, Hw::EXEC, Hw::USER,
Hw::NO_GLOBAL, io ? Hw::DEVICE : Hw::RAM, cacheable }) {}
@ -108,6 +109,11 @@ class Genode::Ipc_pager
*/
bool write_fault() const;
/**
* Executable permission fault
*/
bool exec_fault() const { return false; }
/**
* Input mapping data as reply to current page fault
*/