This website requires JavaScript.
Explore
Help
Register
Sign In
Archives
/
rust-raspberrypi-OS-tutorials
Watch
2
Star
0
Fork
0
You've already forked rust-raspberrypi-OS-tutorials
mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced
2024-11-15 18:14:02 +00:00
Code
Issues
Projects
Releases
Wiki
Activity
db0152dd32
rust-raspberrypi-OS-tutorials
/
common
/
docker.mk
2 lines
49 B
Makefile
Raw
Normal View
History
Unescape
Escape
Refactor memory subsystem code This patch refactors big chunks of the memory subsystem code. Most of all, it does away with the the design being based around the raw pointer type "*const Page". While raw pointers to an actual page seemed like a compelling idea, in practice it turned out difficult. Rust feels a bit inconsistent with respect to raw pointers. While it is safe to create them out of nowhere (only dereferencing is unsafe), it gets weird when multi-threading comes into picture. For example, wrapping them into synchronization primitives caused issues because they don't implement Send. For this reason, we switch to the PageAddress type which is based on usize, which makes things a lot easier. Other changes/benefits include: - Gets rid of unsafe code in the removed PageSlice type. - Decouple the translation table code and MMIO VA allocation. - For the translation table tool, make better use of what the ELF format already provides with respect to memory segmentation and translation. For example, the tool now queries the ELF file for VA->PA translations and other segment attributes. This has also the added benefit of reduced BSP code and more generic code in the tool. - Packs rbelftools in the Docker image now (used by translation table tool). - In tutorials 14/15/16, rearrange the PA and VA layout.
2021-12-02 19:44:12 +00:00
DOCKER_IMAGE
:=
rustembedded/osdev-utils:2021.12
Reference in New Issue
Copy Permalink