mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
move the IFRAM specifiers to a more public location
The IFRAM allocation used by the loader is now exposed so we can pick it up and use it in the actual HAL implementation in usermode.
This commit is contained in:
parent
c8d4123ed7
commit
d434e70075
2 changed files with 15 additions and 11 deletions
|
|
@ -19,16 +19,6 @@ pub const RAM_SIZE: usize = utralib::generated::HW_SRAM_MEM_LEN;
|
|||
pub const RAM_BASE: usize = utralib::generated::HW_SRAM_MEM;
|
||||
pub const FLASH_BASE: usize = utralib::generated::HW_RERAM_MEM;
|
||||
|
||||
// Locate the hard-wired IFRAM allocations for UDMA
|
||||
pub const UART_IFRAM_ADDR: usize = utralib::HW_IFRAM0_MEM + utralib::HW_IFRAM0_MEM_LEN - 4096;
|
||||
// RAM needs two buffers of 1k + 16 bytes = 2048 + 16 = 2064 bytes; round up to one page
|
||||
#[allow(dead_code)]
|
||||
pub const SPIM_RAM_IFRAM_ADDR: usize = utralib::HW_IFRAM0_MEM + utralib::HW_IFRAM0_MEM_LEN - 2 * 4096;
|
||||
// Flash will be released after the loader is done: it's only accessed to copy the IniS sectors into swap,
|
||||
// then abandoned. It needs 4096 bytes for Rx, and 0 bytes for Tx + 16 bytes for cmd.
|
||||
#[allow(dead_code)]
|
||||
pub const SPIM_FLASH_IFRAM_ADDR: usize = utralib::HW_IFRAM0_MEM + utralib::HW_IFRAM0_MEM_LEN - 4 * 4096;
|
||||
|
||||
// location of kernel, as offset from the base of ReRAM. This needs to match up with what is in link.x.
|
||||
// exclusive of the signature block offset
|
||||
pub const KERNEL_OFFSET: usize = 0x4_0000;
|
||||
|
|
|
|||
|
|
@ -59,6 +59,20 @@ pub struct SwapSpec {
|
|||
pub swap_len: u32,
|
||||
/// Base of the message authentication code (MAC) region
|
||||
pub mac_base: u32,
|
||||
/// LENGTH of the MAC region in bytes
|
||||
/// Length of the MAC region in bytes
|
||||
pub mac_len: u32,
|
||||
}
|
||||
|
||||
// Locate the hard-wired IFRAM allocations for UDMA
|
||||
#[allow(dead_code)]
|
||||
#[cfg(feature = "cramium-soc")]
|
||||
pub const UART_IFRAM_ADDR: usize = utralib::HW_IFRAM0_MEM + utralib::HW_IFRAM0_MEM_LEN - 4096;
|
||||
// RAM needs two buffers of 1k + 16 bytes = 2048 + 16 = 2064 bytes; round up to one page
|
||||
#[allow(dead_code)]
|
||||
#[cfg(feature = "cramium-soc")]
|
||||
pub const SPIM_RAM_IFRAM_ADDR: usize = utralib::HW_IFRAM0_MEM + utralib::HW_IFRAM0_MEM_LEN - 2 * 4096;
|
||||
// Flash will be released after the loader is done: it's only accessed to copy the IniS sectors into swap,
|
||||
// then abandoned. It needs 4096 bytes for Rx, and 0 bytes for Tx + 16 bytes for cmd.
|
||||
#[allow(dead_code)]
|
||||
#[cfg(feature = "cramium-soc")]
|
||||
pub const SPIM_FLASH_IFRAM_ADDR: usize = utralib::HW_IFRAM0_MEM + utralib::HW_IFRAM0_MEM_LEN - 4 * 4096;
|
||||
|
|
|
|||
Loading…
Reference in a new issue