Implement comparison for invalid virt address error
Similar to PhysAddrNotValid.
This commit is contained in:
parent
e215f9d62c
commit
633dbd191f
|
@ -37,7 +37,7 @@ pub struct VirtAddr(u64);
|
||||||
/// a valid sign extension and are not null either. So automatic sign extension would have
|
/// a valid sign extension and are not null either. So automatic sign extension would have
|
||||||
/// overwritten possibly meaningful bits. This likely indicates a bug, for example an invalid
|
/// overwritten possibly meaningful bits. This likely indicates a bug, for example an invalid
|
||||||
/// address calculation.
|
/// address calculation.
|
||||||
#[derive(Debug)]
|
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
|
||||||
pub struct VirtAddrNotValid(u64);
|
pub struct VirtAddrNotValid(u64);
|
||||||
|
|
||||||
impl VirtAddr {
|
impl VirtAddr {
|
||||||
|
|
Loading…
Reference in New Issue