diff options
| author | Inochi Amaoto <[email protected]> | 2024-11-11 10:27:33 +0800 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2024-11-11 17:40:22 +0530 |
| commit | dcb68dd17d21c80cbd340610c7eb16c33e83bf20 (patch) | |
| tree | 1bb84490c24dd68de23306c0aa2e8ad61a828264 | |
| parent | 701948bdec90e2908517e260d06e0e5e5d0f4419 (diff) | |
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 <[email protected]>
Reviewed-by: Xiang W <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
| -rw-r--r-- | include/sbi/sbi_platform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h index d7af3093..3e21a628 100644 --- a/include/sbi/sbi_platform.h +++ b/include/sbi/sbi_platform.h @@ -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 { |
