From 87d4027221df80fd77005de4a214ba3291614145 Mon Sep 17 00:00:00 2001 From: Yuhao Zhou Date: Tue, 7 May 2019 00:38:39 +0800 Subject: [PATCH] Align MemorySet with 64bytes. --- crate/memory/src/memory_set/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crate/memory/src/memory_set/mod.rs b/crate/memory/src/memory_set/mod.rs index 9eb566a..a0fd41a 100644 --- a/crate/memory/src/memory_set/mod.rs +++ b/crate/memory/src/memory_set/mod.rs @@ -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 { areas: Vec, page_table: T,