Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary fences in CapDL initializer #114

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading