mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add an extra reserved page for the swapper
on cramium-soc an extra page of stack ends up being used to accommodate the page buffer needed for SPIM implementation
This commit is contained in:
parent
aa8d84f007
commit
4efd227b70
1 changed files with 4 additions and 3 deletions
|
|
@ -236,9 +236,10 @@ static MAYBE_HARD_OOM_DURING_OOM_DOOM: AtomicBool = AtomicBool::new(false);
|
||||||
///
|
///
|
||||||
/// Known things the swapper has to allocate memory for in hard-OOM:
|
/// Known things the swapper has to allocate memory for in hard-OOM:
|
||||||
/// - L1 page table entries for tracking swap
|
/// - L1 page table entries for tracking swap
|
||||||
/// - A second page will be requested in case of panic in hard OOM for TLS, but these shouldn't happen so we
|
/// - An extra page for stack (needed for cramium targets, but not on precursor due to HAL differences)
|
||||||
/// don't reserve it.
|
/// - An additional page will be requested in case of panic in hard OOM for TLS, but these shouldn't happen
|
||||||
const HARD_OOM_RESERVED_PAGES: usize = 1;
|
/// so we don't reserve it.
|
||||||
|
const HARD_OOM_RESERVED_PAGES: usize = 2;
|
||||||
|
|
||||||
/// This structure contains shared state accessible between the userspace code and the blocking swap call
|
/// This structure contains shared state accessible between the userspace code and the blocking swap call
|
||||||
/// handler.
|
/// handler.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue