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

Use memory_address::{VirtAddr, PhysAddr} in the kernel #1442

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

jounathaen
Copy link
Member

This depends on hermit-os/rust-aarch64#9

@jounathaen
Copy link
Member Author

Would probably be an interesting case for continuous benchmarking...

Copy link
Member

@mkroening mkroening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Memory addresses should ideally be formatted as {:p} (std::fmt::Pointer).

@jounathaen jounathaen force-pushed the memory_addresses branch 6 times, most recently from e5ad74b to 32132c7 Compare November 18, 2024 10:20
@mkroening mkroening self-requested a review November 18, 2024 10:21
@mkroening mkroening force-pushed the memory_addresses branch 2 times, most recently from e17c3de to a0c9c3a Compare November 18, 2024 14:02
Copy link
Member

@mkroening mkroening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! :)

Co-authored-by: Jonathan Klimt <[email protected]>
Signed-off-by: Martin Kröning <[email protected]>
…rnel

Additional (implied) changes

- aarch64: made physical_address_and_flags an u64
- x86_apic: changed SMP offsets from usize to u64
- changed VGA_BUFFER_ADDRESS to PhysAddr
- Updated aarch64 dependency to v0.0.13
@mkroening mkroening added this pull request to the merge queue Nov 18, 2024
Merged via the queue into main with commit e838ab9 Nov 18, 2024
14 checks passed
@mkroening mkroening deleted the memory_addresses branch November 19, 2024 13:51
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.

3 participants