hermit-os / rust-aarch64

Rust library to use aarch64 specific functionality and registers.
Apache License 2.0
5 stars 5 forks source link

allow compilation on stable Rust #7

Closed jounathaen closed 6 months ago

jounathaen commented 6 months ago

My goal is to use the VirtAddr and PhysAddr in other crates which are stable. With this PR this should be possible:

[target.'cfg(target_arch = "aarch64")'.dependencies]
aarch64 = { path = "../../rust-aarch64" , default-features = false}

Not 100% sure if this is all correct, as it is difficult to test without an aarch64 machine.

jounathaen commented 6 months ago

Oh, this is BTW heavily inspired by https://github.com/rust-osdev/x86_64