Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various improvements to VirtAddr and PhysAddr. #141

Merged
merged 5 commits into from
Apr 10, 2020

Commits on Apr 10, 2020

  1. Rename VirtAddr::new_unchecked to new_truncate.

    The old name suggests it's an unsafe function that wraps the given
    address without any checks or modifications, like
    NonZeroU64::new_unchecked.
    
    The old name is still available, but #[deprecated].
    m-ou-se committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    e2191ea View commit details
    Browse the repository at this point in the history
  2. Add unsafe {VirtAddr,PhysAddr}::new_unsafe.

    Like NonZeroU64::new_unchecked, they wrap the given value without any
    checks or modifications.
    m-ou-se committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    5440a22 View commit details
    Browse the repository at this point in the history
  3. Fix typo in doc comment.

    m-ou-se committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    a822761 View commit details
    Browse the repository at this point in the history
  4. Add PhysAddr::zero().

    m-ou-se committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    8c1a8bc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4335b5e View commit details
    Browse the repository at this point in the history