theseus-os / Theseus

Theseus is a modern OS written from scratch in Rust that explores 𝐢𝐧𝐭𝐫𝐚𝐥𝐢𝐧𝐠𝐮𝐚𝐥 𝐝𝐞𝐬𝐢𝐠𝐧: closing the semantic gap between compiler and hardware by maximally leveraging the power of language safety and affine types. Theseus aims to shift OS responsibilities like resource management into the compiler.
https://www.theseus-os.com/
MIT License
2.92k stars 172 forks source link

`pte_flags` bilge conversion [draft] #1085

Open NathanRoyer opened 11 months ago

NathanRoyer commented 11 months ago

Here is my partial bilge conversion of pte_flags.

At this point the only thing I converted was the PteFlagsAarch64 struct, I didn't update the methods from the bitflags era. As such, this doesn't compile, but the definition of that struct should be correct. When the field is defined as an enum, I moved the field documentation to the enum, not sure if that's a good thing to do.