mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +00:00
tweak backup stack space allocation in kernel now that we've tested on hw
This commit is contained in:
parent
14d6e703e9
commit
d92a8dd00d
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ use crate::services::SystemServices;
|
||||||
/// invocation. So, if it works once, it should keep on working for that particular
|
/// invocation. So, if it works once, it should keep on working for that particular
|
||||||
/// combination of target/link options/compiler version.
|
/// combination of target/link options/compiler version.
|
||||||
#[cfg(any(feature = "debug-swap", feature = "debug-swap-verbose"))] // more stack needed for debug
|
#[cfg(any(feature = "debug-swap", feature = "debug-swap-verbose"))] // more stack needed for debug
|
||||||
const BACKUP_STACK_SIZE_WORDS: usize = 2048 / core::mem::size_of::<usize>();
|
const BACKUP_STACK_SIZE_WORDS: usize = 1536 / core::mem::size_of::<usize>();
|
||||||
#[cfg(not(any(feature = "debug-swap", feature = "debug-swap-verbose")))]
|
#[cfg(not(any(feature = "debug-swap", feature = "debug-swap-verbose")))]
|
||||||
const BACKUP_STACK_SIZE_WORDS: usize = 1024 / core::mem::size_of::<usize>();
|
const BACKUP_STACK_SIZE_WORDS: usize = 1024 / core::mem::size_of::<usize>();
|
||||||
|
|
||||||
|
|
@ -506,7 +506,7 @@ impl Swap {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "debug-swap-verbose")]
|
#[cfg(feature = "debug-swap")]
|
||||||
crate::arch::process::Process::with_current(|p| {
|
crate::arch::process::Process::with_current(|p| {
|
||||||
println!(
|
println!(
|
||||||
"BEF HANDLER {:x?} {}.{} sepc: {:x} sstatus: {:x?} satp: {:x?}",
|
"BEF HANDLER {:x?} {}.{} sepc: {:x} sstatus: {:x?} satp: {:x?}",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue