We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47c1796 commit e464ad7Copy full SHA for e464ad7
cortex-ar/src/mmu.rs
@@ -285,6 +285,7 @@ impl L1Section {
285
/// Set the section attributes without changing the address.
286
#[inline]
287
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();
+ self.raw_value =
289
+ ((self.base_addr().value() as u32) << 20) | section_attrs.l1_section_part().raw_value();
290
}
291
0 commit comments