Skip to content

Commit

Permalink
crates/sel4-capdl-initializer: Remove unnecessary fences
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Mar 18, 2024
1 parent f39389b commit 4044494
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/sel4-capdl-initializer/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use core::borrow::BorrowMut;
use core::ops::Range;
use core::result;
use core::slice;
use core::sync::atomic::{self, Ordering};

#[allow(unused_imports)]
use log::{debug, info, trace};
Expand Down Expand Up @@ -500,7 +499,6 @@ impl<'a, N: ObjectName, D: Content, M: GetEmbeddedFrame, B: BorrowMut<[PerObject
CapRights::read_write(),
vm_attributes_from_whether_cached(false),
)?;
atomic::fence(Ordering::SeqCst); // lazy
for entry in fill.iter() {
let offset = entry.range.start;
let length = entry.range.end - entry.range.start;
Expand Down Expand Up @@ -531,7 +529,6 @@ impl<'a, N: ObjectName, D: Content, M: GetEmbeddedFrame, B: BorrowMut<[PerObject
}
}
}
atomic::fence(Ordering::SeqCst); // lazy
frame.frame_unmap()?;
Ok(())
}
Expand Down

0 comments on commit 4044494

Please sign in to comment.