Setting memory attributes is generally done at page granularity, and this is enforced by checks in get_mem_attrs and
update_mem_attrs. But unlike the section address, the section size isn't necessarily aligned to 4KiB. Round up the section size to fix this.
Setting memory attributes is generally done at page granularity, and this is enforced by checks in
get_mem_attrs
andupdate_mem_attrs
. But unlike the section address, the section size isn't necessarily aligned to 4KiB. Round up the section size to fix this.Signed-off-by: Nicholas Bishop nicholasbishop@google.com