mirror of
https://github.com/riscv-software-src/opensbi
synced 2025-10-14 21:06:04 +01:00
platform: ensure enough heap size with debug triggers extension
DBTR introduce a big heap allocation to store hart state, this is allocated percpu and needs big space when CPU number is high. Increase the percpu part to fix this problem, and decrease the fixed part to avoid too big heap size. Fixes: 97f234f (lib: sbi: Introduce the SBI debug triggers extension support) Signed-off-by: Inochi Amaoto <inochiama@gmail.com> Reviewed-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
701948bdec
commit
dcb68dd17d
@ -150,7 +150,7 @@ struct sbi_platform_operations {
|
||||
|
||||
/** Platform default heap size */
|
||||
#define SBI_PLATFORM_DEFAULT_HEAP_SIZE(__num_hart) \
|
||||
(0x8000 + 0x800 * (__num_hart))
|
||||
(0x8000 + 0x1000 * (__num_hart))
|
||||
|
||||
/** Representation of a platform */
|
||||
struct sbi_platform {
|
||||
|
Loading…
x
Reference in New Issue
Block a user