sq move null cap

This commit is contained in:
Berkus Decker 2020-12-13 19:41:15 +02:00
parent d129db345f
commit 6e6e82f466
1 changed files with 9 additions and 9 deletions

View File

@ -380,6 +380,15 @@ capdefs! {
AsidControl, AsidPool
}
impl NullCapability {
/// Create a Null capability.
///
/// Such capabilities are invalid and can not be used for anything.
pub fn new() -> NullCapability {
NullCapability(LocalRegisterCopy::new(u128::from(NullCap::Type::value)))
}
}
// @todo retyping a device capability requires specifying memory base exactly, can't just pick next frame?
/// Capability to a block of untyped memory.
@ -483,15 +492,6 @@ impl CapNodeCapability {
}
}
impl NullCapability {
/// Create a Null capability.
///
/// Such capabilities are invalid and can not be used for anything.
pub fn new() -> NullCapability {
NullCapability(LocalRegisterCopy::new(u128::from(NullCap::Type::value)))
}
}
impl CapNodeCapability {
/// Create a capability to CapNode.
///