mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-21 23:56:18 +04:00
Fix peripherals memory mapping
Since `PERIPHERALS_START` and `PERIPHERALS_END` hasn't `KERNEL_OFFSET`, there's no need to minus it.
This commit is contained in:
parent
1ab076cfe9
commit
e97154e2b6
@ -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",
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user