Skip to content

Commit

Permalink
more progress on peeling away ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
enjhnsn2 committed Jul 15, 2024
1 parent fed4993 commit fcaf26f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions kernel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,9 @@ pub mod utilities;
mod config;
mod kernel;
mod memop;
#[flux::ignore]
mod process_binary;
#[flux::ignore]
mod process_loading;
#[flux::ignore]
mod process_policies;
#[flux::ignore]
mod process_printer;
Expand Down
6 changes: 2 additions & 4 deletions kernel/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,7 @@ pub trait Process {
/// The caller MUST verify this process is unique before calling this
/// function. This requires a capability to call to ensure that the caller
/// have verified that this process is unique before trying to start it.
#[flux::ignore]
fn start(&self, cap: &dyn crate::capabilities::ProcessStartCapability);
fn start(&self, cap: &crate::capabilities::ProcessStartCap);

/// Terminates and attempts to restart the process. The process and current
/// application always terminate. The kernel may, based on its own policy,
Expand Down Expand Up @@ -1094,8 +1093,7 @@ impl<'a> TockProc<'a> {
pub fn set_fault_state(&self) {
unimplemented!()
}
#[flux::ignore]
pub fn start(&self, cap: &dyn crate::capabilities::ProcessStartCapability) {
pub fn start(&self, cap: &crate::capabilities::ProcessStartCap) {
unimplemented!()
}
pub fn try_restart(&self, completion_code: Option<u32>) {
Expand Down
1 change: 1 addition & 0 deletions kernel/src/process_binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ pub struct ProcessBinary {
}

impl ProcessBinary {
#[flux::ignore]
pub(crate) fn create(
app_flash: &'static [u8],
header_length: usize,
Expand Down
2 changes: 1 addition & 1 deletion kernel/src/process_standard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ impl<C: Chip> Process for ProcessStandard<'_, C> {
}
}

fn start(&self, _cap: &dyn crate::capabilities::ProcessStartCapability) {
fn start(&self, _cap: &crate::capabilities::ProcessStartCap) {
// `start()` can only be called on a terminated process.
if self.get_state() != State::Terminated {
return;
Expand Down

0 comments on commit fcaf26f

Please sign in to comment.