loongArch64 0.2.6

loongArch64 support for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
impl_define_csr!(Prcfg2, "Privileged Resource Configuration 1");
impl_read_csr!(0x22, Prcfg2);

impl Prcfg2 {
    /// Return a bit vector of page sizes supported by the TLB.
    ///
    /// If the bit is 1, the 2^(i) page size is supported.
    pub fn psval(&self) -> usize {
        self.bits
    }
}