mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
migrate kernel-to-board platform constants for swapper
This commit is contained in:
parent
805ebd22a3
commit
52ee66e1a5
4 changed files with 7 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ pub mod api;
|
||||||
#[cfg(feature = "spinor")]
|
#[cfg(feature = "spinor")]
|
||||||
pub mod spinor;
|
pub mod spinor;
|
||||||
|
|
||||||
pub const PAGE_SIZE: usize = 4096;
|
pub const PAGE_SIZE: usize = xous::arch::PAGE_SIZE;
|
||||||
|
|
||||||
/// public userspace & swapper handler -> swapper userspace ABI
|
/// public userspace & swapper handler -> swapper userspace ABI
|
||||||
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
||||||
|
|
|
||||||
|
|
@ -56,9 +56,10 @@ use std::collections::BinaryHeap;
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
|
||||||
use debug::*;
|
use debug::*;
|
||||||
use loader::swap::{SWAP_CFG_VADDR, SWAP_COUNT_VADDR, SWAP_PT_VADDR, SWAP_RPT_VADDR, SwapAlloc, SwapSpec};
|
use loader::swap::{SwapAlloc, SwapSpec};
|
||||||
use num_traits::*;
|
use num_traits::*;
|
||||||
use platform::{PAGE_SIZE, SwapHal};
|
use platform::{PAGE_SIZE, SwapHal};
|
||||||
|
use xous::arch::{SWAP_CFG_VADDR, SWAP_COUNT_VADDR, SWAP_PT_VADDR, SWAP_RPT_VADDR};
|
||||||
use xous::{MemoryFlags, MemoryRange, PID, Result};
|
use xous::{MemoryFlags, MemoryRange, PID, Result};
|
||||||
use xous_swapper::Opcode;
|
use xous_swapper::Opcode;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,12 @@ use cramium_api::*;
|
||||||
use cramium_hal::board::SPIM_RAM_IFRAM_ADDR;
|
use cramium_hal::board::SPIM_RAM_IFRAM_ADDR;
|
||||||
use cramium_hal::ifram::IframRange;
|
use cramium_hal::ifram::IframRange;
|
||||||
use cramium_hal::udma::*;
|
use cramium_hal::udma::*;
|
||||||
use loader::swap::{SWAP_HAL_VADDR, SwapSpec};
|
use loader::swap::SwapSpec;
|
||||||
|
use xous::arch::SWAP_HAL_VADDR;
|
||||||
|
|
||||||
use crate::debug::*;
|
use crate::debug::*;
|
||||||
|
|
||||||
pub const PAGE_SIZE: usize = 4096;
|
pub const PAGE_SIZE: usize = xous::arch::PAGE_SIZE;
|
||||||
|
|
||||||
/// This is an implementation for SMTs that are accessible only through a SPI
|
/// This is an implementation for SMTs that are accessible only through a SPI
|
||||||
/// register interface. The base and bounds must be translated to SPI accesses
|
/// register interface. The base and bounds must be translated to SPI accesses
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use loader::swap::{SWAP_HAL_VADDR, SwapSpec};
|
||||||
|
|
||||||
use crate::debug::DebugUart;
|
use crate::debug::DebugUart;
|
||||||
|
|
||||||
pub const PAGE_SIZE: usize = 4096;
|
pub const PAGE_SIZE: usize = xous::arch::PAGE_SIZE;
|
||||||
|
|
||||||
/// This defines a set of functions to get and receive MACs (message
|
/// This defines a set of functions to get and receive MACs (message
|
||||||
/// authentication codes, also referred to as the tag in AES-GCM-SIV.
|
/// authentication codes, also referred to as the tag in AES-GCM-SIV.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue