You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the MappedPageTable is generic over a PhysToVirt function (Fn(PhysFrame) -> *mut PageTable). This makes it quite awkward to use in statics (see phil-opp/blog_os#639 (comment)).
The question is: Does anybody use anything other than a simple offset to implement this function? If not, we could replace the generic PhysToVirt closure with a simple physical_memory_offset integer to make it much simpler.
The text was updated successfully, but these errors were encountered:
83: Add a new `OffsetPageTable` mapper type r=phil-opp a=phil-opp
The type wraps a `MappedPageTable` instance with a simpler interface. It uses a simple phys-to-virt offset instead of being generic over a phys-to-virt closure, which makes it easier to e.g. store the type in a `static`.
TODO:
- [x] Make `phys_offset` a `VirtAddr` instead of an `u64`
Fixes#81
Co-authored-by: Philipp Oppermann <[email protected]>
83: Add a new `OffsetPageTable` mapper type r=phil-opp a=phil-opp
The type wraps a `MappedPageTable` instance with a simpler interface. It uses a simple phys-to-virt offset instead of being generic over a phys-to-virt closure, which makes it easier to e.g. store the type in a `static`.
TODO:
- [x] Make `phys_offset` a `VirtAddr` instead of an `u64`
Fixes#81
Co-authored-by: Philipp Oppermann <[email protected]>
Currently the
MappedPageTable
is generic over aPhysToVirt
function (Fn(PhysFrame) -> *mut PageTable
). This makes it quite awkward to use in statics (see phil-opp/blog_os#639 (comment)).The question is: Does anybody use anything other than a simple offset to implement this function? If not, we could replace the generic
PhysToVirt
closure with a simplephysical_memory_offset
integer to make it much simpler.The text was updated successfully, but these errors were encountered: