pvmfw: Increase STACK_PAGES to 12
Some platforms are now hitting the limit of the (arbitrary) stack size
of 8 pages we were using so bump it up by 50%. As pvmfw zeroes this
stack region, we aim to keep it as small as possible.
Bug: 335130218
Test: TH
Change-Id: I9391e8c5b413469a33ede682767f6ecabdfbb316
diff --git a/pvmfw/src/memory.rs b/pvmfw/src/memory.rs
index 06158dd..5a3735e 100644
--- a/pvmfw/src/memory.rs
+++ b/pvmfw/src/memory.rs
@@ -36,7 +36,7 @@
/// Region allocated for the stack.
pub fn stack_range() -> Range<VirtualAddress> {
- const STACK_PAGES: usize = 8;
+ const STACK_PAGES: usize = 12;
layout::stack_range(STACK_PAGES * PVMFW_PAGE_SIZE)
}