a96ea6f5f38a5f6c71b50857edb0854a34757678
Before this commit, RMM assumed base physical address was presented in PTE as is, i.e. physical page address was shifted exactly to PAGE_SHIFT, so physical address can be extracted from PTE by simply masking off some bits and can be placed in PTE by simple addition/OR. This is not the case for RISC-V which has 4Kb base page so 12 bits PAGE_SHIFT, yet physical page address is only shifted 10 bits in PTE. This commit removes this assumption. NOTE: This commit changes meaning of constants: * ENTRY_ADDRESS_SIZE from "total physical size in bytes" to "total physical size in PAGES" * ENTRY_ADDRESS_MASK from "mask of physical bits in PTE" to "mask of physical bits starting at bit 0"
Redox Memory Management
This is a Rust crate to provide abstractions for hardware memory management. It also contains a mechanism for testing memory management with software emulation.
Description
RedBear Operating System, based on RedoxOS. Licenced under MIT license.
https://redbearos.org
Languages
C
37.5%
C++
37.2%
JavaScript
6.7%
QML
3.4%
HTML
3.2%
Other
11.4%