mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-04-27 18:35:32 +00:00
kata-os-camkes: add debug_assert_slot_frame
Change-Id: I07f272d2a63dc605e26ff93cd089bb56169eea2e GitOrigin-RevId: 6a5966d52eb634c079bbd5c91a67e3aa500dd27d
This commit is contained in:
parent
201876492b
commit
b446c00783
@ -207,6 +207,15 @@ impl Camkes {
|
||||
sel4_sys::cap_identify(path.1)
|
||||
);
|
||||
}
|
||||
pub fn debug_assert_slot_frame(tag: &str, path: &seL4_CPath) {
|
||||
sel4_sys::debug_assert_slot_frame!(
|
||||
path.1,
|
||||
"{}: expected frame in slot {:?} but found cap type {:?}",
|
||||
tag,
|
||||
path,
|
||||
sel4_sys::cap_identify(path.1)
|
||||
);
|
||||
}
|
||||
|
||||
// Dumps the contents of the toplevel CNode to the serial console.
|
||||
pub fn capscan() -> seL4_Result {
|
||||
|
Loading…
Reference in New Issue
Block a user