From 7bef3289dd97d0c200635693ccd85e684915d31c Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 27 Jun 2022 17:51:01 +0000 Subject: [PATCH] Reduce CAmkES per-component heap allocation. Set the per-component static heap size to 8KB. The heap is only used by CAmkES RPC for marhsaling dynamic array & string parameters. We mostly use the former and no more than 4KB at a time so 8KB should be fine until we can redirect C use to the Rust heap allocator (or replace the C code). BUG=224069025 Change-Id: I600854c5cb41ed268087f4b2294b70c3384973c2 GitOrigin-RevId: 177a353e6873f2c048cf4b446114534d9dcffc94 --- easy-settings.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/easy-settings.cmake b/easy-settings.cmake index 4f2fa80..6191fad 100644 --- a/easy-settings.cmake +++ b/easy-settings.cmake @@ -7,6 +7,7 @@ set(RUST_TARGET "riscv32imac-unknown-none-elf" CACHE STRING "Rust target_arch") set(KernelSel4Arch "riscv32" CACHE STRING "Specifies 32-bit branch of the seL4 spike platform") set(KernelIsMCS ON CACHE BOOL "Enable seL4 MCS support") set(KernelPrinting ON CACHE BOOL "Enable seL4 console output support") +set(CAmkESDefaultHeapSize "8192" CACHE STRING "CAmkES per-component heap size (bytes)") set(LibUtilsDefaultZfLogLevel 5 CACHE STRING "seL4 internal logging level (0-5).") set(SIMULATION ON CACHE BOOL "Whether to build simulate script")