Skip to content

Commit

Permalink
SQUASH fix build time
Browse files Browse the repository at this point in the history
  • Loading branch information
cbiffle committed Dec 17, 2024
1 parent ae244a5 commit 1b98ec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/kern/src/arch/arm_m.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ pub const fn compute_region_extension_data(
// RLAR = our upper bound; note that enable (bit 0) is not set, because
// it's possible to hard-fault midway through region configuration if
// address and size are incompatible while the region is enabled.
let rlar_disabled = (base + size - 32); // upper bound
let rlar_disabled = base + size - 32; // upper bound

// RBAR = the base
let rbar = (xn as u32)
Expand Down Expand Up @@ -574,7 +574,7 @@ pub fn apply_memory_protection(task: &task::Task) {
let ext = &region.arch_data;

unsafe {
let rlar_disabled = ext.rlar_disabled | (index as u32) << 1; // AttrIdx
let rlar_disabled = ext.rlar_disabled | (i as u32) << 1; // AttrIdx
mpu.rnr.write(rnr);
mpu.rlar.write(rlar_disabled); // configure but leave disabled
if rnr < 4 {
Expand Down

0 comments on commit 1b98ec7

Please sign in to comment.