sv39 0.2.0

An implementation of sv39 paging system for RISC-V
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Sv39Error {
    #[error("Misaligned Address: 0x{0:X}")]
    MisalignedAddr(u64),

    #[error("Invalid Address: 0x{0:X}")]
    InvalidAddr(u64),

    #[error("Allocation failed")]
    AllocationFailed,

    #[error("Invalid Pte")]
    InvalidPte,
}