sq update untyped

This commit is contained in:
Berkus Decker 2020-12-13 19:42:39 +02:00
parent b6852b46a5
commit 57ae94847d
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@
// deriveCap();
use {
crate::memory::PhysAddr,
core::{convert::TryFrom, fmt},
paste::paste,
register::{register_bitfields, LocalRegisterCopy},
@ -425,7 +426,7 @@ impl UntypedCapability {
/// Return start address of this untyped block.
pub fn base(&self) -> PhysAddr {
self.0.read(UntypedCap::Ptr)
(self.0.read(UntypedCap::Ptr) as u64).into() // @todo implement TryFrom<u128> for PhysAddr
}
// #define MAX_FREE_INDEX(sizeBits) (BIT( (sizeBits) - seL4_MinUntypedBits ))