mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
adjust ram available size when swap is enabled
This commit is contained in:
parent
400088fb42
commit
36173fde95
1 changed files with 3 additions and 0 deletions
|
|
@ -3,7 +3,10 @@ pub mod swap;
|
|||
#[cfg(feature = "swap")]
|
||||
pub use swap::*;
|
||||
|
||||
#[cfg(not(feature = "swap"))]
|
||||
pub const RAM_SIZE: usize = utralib::generated::HW_SRAM_EXT_MEM_LEN;
|
||||
#[cfg(feature = "swap")]
|
||||
pub const RAM_SIZE: usize = utralib::generated::HW_SRAM_EXT_MEM_LEN / 2;
|
||||
pub const RAM_BASE: usize = utralib::generated::HW_SRAM_EXT_MEM;
|
||||
|
||||
/// Note that this memory test is "destructive" -- supend/resume will fail if it is enabled
|
||||
|
|
|
|||
Loading…
Reference in a new issue