Skip to content

Commit

Permalink
crates/sel4-capdl-initializer: Fix build for MCS
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Feb 19, 2024
1 parent 68b9ee6 commit d3341ea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions crates/sel4-capdl-initializer/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use log::{debug, info, trace};
use sel4::{
cap_type,
init_thread::{self, Slot},
AbsoluteCPtr, BootInfoPtr, CNodeCapData, CPtr, Cap, CapRights, CapType, ObjectBlueprint,
AbsoluteCPtr, BootInfoPtr, CNodeCapData, Cap, CapRights, CapType, ObjectBlueprint,
SizedFrameType, Untyped, UserContext,
};
use sel4_capdl_initializer_types::*;
Expand Down Expand Up @@ -556,7 +556,9 @@ impl<'a, N: ObjectName, D: Content, M: GetEmbeddedFrame, B: BorrowMut<[PerObject
let obj = self.spec().lookup_object::<&object::SchedContext>(obj_id)?;
let sched_context = self.orig_cap::<cap_type::SchedContext>(obj_id);
self.bootinfo
.sched_control(affinity)
.sched_control()
.index(affinity)
.cap()
.sched_control_configure_flags(
sched_context,
obj.extra.budget,
Expand Down Expand Up @@ -638,7 +640,7 @@ impl<'a, N: ObjectName, D: Content, M: GetEmbeddedFrame, B: BorrowMut<[PerObject
let new = self.cslot_alloc_or_panic().cap();
let dst = init_thread::slot::CNODE.cap().relative(new);
dst.mint(&src, rights, badge)?;
new
new.cast()
}
},
};
Expand All @@ -661,7 +663,7 @@ impl<'a, N: ObjectName, D: Content, M: GetEmbeddedFrame, B: BorrowMut<[PerObject

tcb.tcb_set_timeout_endpoint(temp_fault_ep)?;
} else {
let fault_ep = CPtr::from_bits(obj.extra.master_fault_ep.unwrap());
let fault_ep = sel4::CPtr::from_bits(obj.extra.master_fault_ep.unwrap());

tcb.tcb_configure(
fault_ep,
Expand Down

0 comments on commit d3341ea

Please sign in to comment.