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

Breaking Change: Improved VirtAddr & PhysAddr #8

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Conversation

jounathaen
Copy link
Member

Make VirtAddr and PhysAddr behave more similar to x86_64:

  • Added a new fn with same signature
  • Address Arithmetic modifications:
    • Addition of two addresses makes no sense
    • Difference of two addresses should yield a u64, not an address
    • Opinionated: Arithmetics with usize shall not exist for addresses to
      avoid inconsistent behaviour on 32/64-bit systems. Be explicit when
      using usizes

Inspired by x86_64:
- Addition of two addresses makes no sense
- Difference of two addresses should yield a u64, not an address
- Opinionated: Arithmetics with usize shall not exist for addresses to
  avoid inconsistent behaviour on 32/64-bit systems. Be explicit when
  using usizes.
@mkroening mkroening self-requested a review February 28, 2024 08:31
@mkroening mkroening self-assigned this Feb 28, 2024
@mkroening mkroening added this pull request to the merge queue Feb 28, 2024
@mkroening mkroening removed this pull request from the merge queue due to a manual request Feb 28, 2024
@mkroening mkroening merged commit 9b921c5 into master Feb 28, 2024
3 checks passed
@mkroening mkroening deleted the arithmetic_fix branch February 28, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants