mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
loader: remove unused imports
This commit is contained in:
parent
d4a85c7efa
commit
e7eb9ece2b
5 changed files with 203 additions and 210 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
use core::{mem, slice};
|
use core::{mem, slice};
|
||||||
|
|
||||||
#[cfg(feature = "atsama5d27")]
|
#[cfg(feature = "atsama5d27")]
|
||||||
pub use armv7::{
|
use armv7::{
|
||||||
PhysicalAddress, VirtualAddress,
|
VirtualAddress,
|
||||||
structures::paging::{
|
structures::paging::{
|
||||||
InMemoryRegister, PageTable as L2PageTable, PageTableDescriptor, PageTableMemory,
|
InMemoryRegister, PageTableDescriptor,
|
||||||
PageTableType, Readable, TranslationTable, TranslationTableDescriptor, TranslationTableMemory,
|
Readable, TranslationTableDescriptor, TranslationTableMemory,
|
||||||
TranslationTableType, Writeable, PAGE_TABLE_FLAGS, PAGE_TABLE_SIZE, SMALL_PAGE_FLAGS,
|
TranslationTableType, SMALL_PAGE_FLAGS,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
use crate::*;
|
use crate::*;
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,13 @@
|
||||||
use core::mem;
|
use core::mem;
|
||||||
use core::num::NonZeroUsize;
|
use core::num::NonZeroUsize;
|
||||||
|
|
||||||
pub use armv7::structures::paging::{
|
use armv7::structures::paging::{
|
||||||
PageTable as L2PageTable, TranslationTable, TranslationTableDescriptor,
|
PageTable as L2PageTable, TranslationTable, TranslationTableDescriptor,
|
||||||
TranslationTableType, PageTableDescriptor, PAGE_TABLE_SIZE, PageTableType,
|
TranslationTableType, PageTableDescriptor, PageTableType,
|
||||||
TranslationTableMemory, PageTableMemory,
|
TranslationTableMemory, PageTableMemory,
|
||||||
PAGE_TABLE_FLAGS, SMALL_PAGE_FLAGS,
|
PAGE_TABLE_FLAGS, SMALL_PAGE_FLAGS,
|
||||||
};
|
};
|
||||||
pub use armv7::{PhysicalAddress, VirtualAddress};
|
use armv7::{PhysicalAddress, VirtualAddress};
|
||||||
use crate::consts::{
|
use crate::consts::{
|
||||||
FLG_R, FLG_U, FLG_VALID, FLG_W, FLG_X, GUARD_MEMORY_BYTES, KERNEL_ARGUMENT_OFFSET,
|
FLG_R, FLG_U, FLG_VALID, FLG_W, FLG_X, GUARD_MEMORY_BYTES, KERNEL_ARGUMENT_OFFSET,
|
||||||
LOADER_CODE_ADDRESS, PAGE_TABLE_OFFSET, KERNEL_STACK_PAGE_COUNT,
|
LOADER_CODE_ADDRESS, PAGE_TABLE_OFFSET, KERNEL_STACK_PAGE_COUNT,
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,12 @@
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
use atsama5d27::uart::{Uart as UartHw, Uart1};
|
use atsama5d27::uart::{Uart as UartHw, Uart1};
|
||||||
pub use armv7::structures::paging::{
|
use armv7::structures::paging::{
|
||||||
PageTable as L2PageTable, TranslationTable, TranslationTableDescriptor,
|
PageTable as L2PageTable, TranslationTable,
|
||||||
TranslationTableType, PageTableDescriptor, PAGE_TABLE_SIZE, PageTableType,
|
TranslationTableType, PageTableType,
|
||||||
TranslationTableMemory, PageTableMemory,
|
TranslationTableMemory, PageTableMemory,
|
||||||
PAGE_TABLE_FLAGS, SMALL_PAGE_FLAGS,
|
|
||||||
};
|
};
|
||||||
pub use armv7::{PhysicalAddress, VirtualAddress};
|
use armv7::PhysicalAddress;
|
||||||
|
|
||||||
type UartType = UartHw<Uart1>;
|
type UartType = UartHw<Uart1>;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,7 @@ use crate::{
|
||||||
println, BootConfig, ProgramDescription,
|
println, BootConfig, ProgramDescription,
|
||||||
XousPid, PAGE_SIZE, STACK_PAGE_COUNT, VDBG,
|
XousPid, PAGE_SIZE, STACK_PAGE_COUNT, VDBG,
|
||||||
};
|
};
|
||||||
pub use armv7::structures::paging::{
|
use armv7::structures::paging::TranslationTableMemory;
|
||||||
PageTable as L2PageTable, TranslationTable, TranslationTableDescriptor,
|
|
||||||
TranslationTableType, PageTableDescriptor, PAGE_TABLE_SIZE, PageTableType,
|
|
||||||
TranslationTableMemory, PageTableMemory,
|
|
||||||
PAGE_TABLE_FLAGS, SMALL_PAGE_FLAGS,
|
|
||||||
};
|
|
||||||
pub use armv7::{PhysicalAddress, VirtualAddress};
|
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Debug, Copy, Clone)]
|
#[derive(Debug, Copy, Clone)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue