Skip to content

Commit e464ad7

Browse files
committed
important fix
1 parent 47c1796 commit e464ad7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cortex-ar/src/mmu.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ impl L1Section {
285285
/// Set the section attributes without changing the address.
286286
#[inline]
287287
pub const fn set_section_attrs(&mut self, section_attrs: SectionAttributes) {
288-
self.raw_value = self.base_addr().value() as u32 | section_attrs.l1_section_part().raw_value();
288+
self.raw_value =
289+
((self.base_addr().value() as u32) << 20) | section_attrs.l1_section_part().raw_value();
289290
}
290291
}

0 commit comments

Comments
 (0)