hw & arm: declare every mapping as MP shared

ref #1006
This commit is contained in:
Martin Stein 2013-12-20 15:51:56 +01:00 committed by Norman Feske
parent f0c54a7ca3
commit c288973bf2

View File

@ -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;
} }