Struct Sv39MetaData

Source
pub struct Sv39MetaData<VA: SvVirtAddr> { /* private fields */ }
Available on RISC-V RV32 or RISC-V RV64 only.
Expand description

Metadata of RISC-V Sv39 page tables.

Trait Implementations§

Source§

impl<VA: SvVirtAddr> PagingMetaData for Sv39MetaData<VA>

Source§

const LEVELS: usize = 3usize

The number of levels of the hardware page table.
Source§

const PA_MAX_BITS: usize = 56usize

The maximum number of bits of physical address.
Source§

const VA_MAX_BITS: usize = 39usize

The maximum number of bits of virtual address.
Source§

type VirtAddr = VA

The virtual address to be translated in this page table. Read more
Source§

fn flush_tlb(vaddr: Option<VA>)

Flushes the TLB. Read more
Source§

const PA_MAX_ADDR: usize = _

The maximum physical address.
Source§

fn paddr_is_valid(paddr: usize) -> bool

Whether a given physical address is valid.
Source§

fn vaddr_is_valid(vaddr: usize) -> bool

Whether a given virtual address is valid.

Auto Trait Implementations§

§

impl<VA> Freeze for Sv39MetaData<VA>

§

impl<VA> RefUnwindSafe for Sv39MetaData<VA>
where VA: RefUnwindSafe,

§

impl<VA> Send for Sv39MetaData<VA>

§

impl<VA> Sync for Sv39MetaData<VA>

§

impl<VA> Unpin for Sv39MetaData<VA>
where VA: Unpin,

§

impl<VA> UnwindSafe for Sv39MetaData<VA>
where VA: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.