From 251c907f4901293a806df9398b28b2cbba1ef89c Mon Sep 17 00:00:00 2001 From: Matt Harvey Date: Wed, 22 Sep 2021 19:39:22 -0700 Subject: [PATCH] Increases DebugConsole heap to 1MB There is a temporary desire to keep ZMODEM uploads as state in DebugConsole. Since realistic package ZIP files might be larger than 16KB, this change increases the heap size to have a lot of excess. Change-Id: Iabb5014cb77cf828f77d4553b7f304248c085114 GitOrigin-RevId: 2ae49570a887d5bd2d4672fb3e134c8a1394190e --- .../components/DebugConsole/kata-debug-console/src/run.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/system/components/DebugConsole/kata-debug-console/src/run.rs b/apps/system/components/DebugConsole/kata-debug-console/src/run.rs index ce43c8f..d85eb3f 100644 --- a/apps/system/components/DebugConsole/kata-debug-console/src/run.rs +++ b/apps/system/components/DebugConsole/kata-debug-console/src/run.rs @@ -27,8 +27,9 @@ pub extern "C" fn pre_init() { // NB: set to Trace for early-boot msgs log::set_max_level(log::LevelFilter::Debug); - // TODO(sleffler): temp until we integrate with seL4 - static mut HEAP_MEMORY: [u8; 16 * 1024] = [0; 16 * 1024]; + // TODO(b/200946906): Review per-component heap allocations, including this one. + const HEAP_SIZE: usize = 1 << 20; + static mut HEAP_MEMORY: [u8; HEAP_SIZE] = [0; HEAP_SIZE]; unsafe { kata_allocator::ALLOCATOR.init(HEAP_MEMORY.as_mut_ptr() as usize, HEAP_MEMORY.len()); trace!(