This website works better with JavaScript.
Explore
Help
Register
Sign In
Archives
/
rust-raspberrypi-OS-tutorials
mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials
Watch
2
Star
0
Fork
You've already forked rust-raspberrypi-OS-tutorials
0
Code
Issues
Projects
Releases
Wiki
Activity
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dc4e69155e
master
original_version
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'dc4e69155e'
${ noResults }
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.
3 years ago
DOCKER_IMAGE
:=
rustembedded/osdev-utils:2021.12