From e97154e2b643d2b7c8d843b45b9fe2652c4dbb64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=86=AC=E5=86=AC?= Date: Wed, 3 Mar 2021 10:42:48 +0800 Subject: [PATCH] Fix peripherals memory mapping Since `PERIPHERALS_START` and `PERIPHERALS_END` hasn't `KERNEL_OFFSET`, there's no need to minus it. --- kernel/src/arch/aarch64/memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/arch/aarch64/memory.rs b/kernel/src/arch/aarch64/memory.rs index 5bfafbb5..51f1f3c8 100644 --- a/kernel/src/arch/aarch64/memory.rs +++ b/kernel/src/arch/aarch64/memory.rs @@ -89,7 +89,7 @@ fn map_kernel() { super::board::PERIPHERALS_START, super::board::PERIPHERALS_END, MemoryAttr::default().mmio(MMIOType::Device as u8), - Linear::new(offset), + Linear::new(0), "peripherals", );