mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 00:11:07 +00:00
parent
f0c54a7ca3
commit
c288973bf2
@ -188,10 +188,11 @@ namespace Arm
|
|||||||
static access_t create(Page_flags const & flags,
|
static access_t create(Page_flags const & flags,
|
||||||
addr_t const pa)
|
addr_t const pa)
|
||||||
{
|
{
|
||||||
access_t v = access_permission_bits<Small_page>(flags) |
|
access_t v = access_permission_bits<Small_page>(flags);
|
||||||
memory_region_attr<Small_page>(flags) |
|
v |= memory_region_attr<Small_page>(flags);
|
||||||
Ng::bits(!flags.global) |
|
v |= Ng::bits(!flags.global);
|
||||||
S::bits(0) | Pa_31_12::masked(pa);
|
v |= S::bits(1);
|
||||||
|
v |= Pa_31_12::masked(pa);
|
||||||
Descriptor::type(v, Descriptor::SMALL_PAGE);
|
Descriptor::type(v, Descriptor::SMALL_PAGE);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
@ -524,11 +525,12 @@ namespace Arm
|
|||||||
static access_t create(Page_flags const & flags,
|
static access_t create(Page_flags const & flags,
|
||||||
addr_t const pa)
|
addr_t const pa)
|
||||||
{
|
{
|
||||||
access_t v = access_permission_bits<Section>(flags) |
|
access_t v = access_permission_bits<Section>(flags);
|
||||||
memory_region_attr<Section>(flags) |
|
v |= memory_region_attr<Section>(flags);
|
||||||
Domain::bits(DOMAIN) | S::bits(0) |
|
v |= Domain::bits(DOMAIN);
|
||||||
Ng::bits(!flags.global) |
|
v |= S::bits(1);
|
||||||
Pa_31_20::masked(pa);
|
v |= Ng::bits(!flags.global);
|
||||||
|
v |= Pa_31_20::masked(pa);
|
||||||
Descriptor::type(v, Descriptor::SECTION);
|
Descriptor::type(v, Descriptor::SECTION);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user