Skip to content

Use #[repr(packed)] with correct alignment for paging.

Jacob Lorentzon requested to merge 4lDO2/kernel:paging-repr-packed into master

Previously, both Entry and Table in the paging implicitly used #[repr(Rust), where the memory layout may be changed arbitrarily by the Rust compiler. This MR ensures that these types be packed, and with the required alignment (4k for tables and 8 for 64-bit entries).

Merge request reports