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 be2762f commit 3ffd554Copy full SHA for 3ffd554
cortex-ar/src/mmu.rs
@@ -284,7 +284,7 @@ impl L1Section {
284
285
/// Set the section attributes without changing the address.
286
#[inline]
287
- pub fn set_section_attrs(&mut self, section_attrs: SectionAttributes) {
288
- self.raw_value = self.base_addr().as_u32() | section_attrs.l1_section_part().raw_value();
+ pub const fn set_section_attrs(&mut self, section_attrs: SectionAttributes) {
+ self.raw_value = self.base_addr().value() as u32 | section_attrs.l1_section_part().raw_value();
289
}
290
0 commit comments