1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-22 16:16:16 +04:00

Align MemorySet with 64bytes.

This commit is contained in:
Yuhao Zhou 2019-05-07 00:38:39 +08:00
parent 35079e4193
commit 87d4027221

View File

@ -174,6 +174,8 @@ impl MemoryAttr {
/// set of memory space with multiple memory area with associated page table and stack space
/// like `mm_struct` in ucore
/// NOTE: Don't remove align(64), or you will fail to run MIPS.
#[repr(align(64))]
pub struct MemorySet<T: InactivePageTable> {
areas: Vec<MemoryArea>,
page_table: T,