mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-07-14 06:24:14 +00:00
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
This commit is contained in:
parent
36677807e8
commit
251c907f49
@ -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!(
|
||||
|
Loading…
Reference in New Issue
Block a user