diff options
| author | Oriol Catalan <[email protected]> | 2026-06-16 19:09:33 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2026-06-16 19:21:11 +0530 |
| commit | d936372eab7f2cdd93d21f67d2381914589d9dd9 (patch) | |
| tree | ee818a76eb447770eca1bf249370fed1e43011bf /lib/utils/cppc/objects.mk | |
| parent | 56c39d1f08cb7aa1132e115b7850715c63212d57 (diff) | |
lib: sbi: Make per-HART stack size configurable via Kconfig
The per-HART stack size for exception/interrupt handling is currently
hardcoded to 8192 bytes in SBI_PLATFORM_DEFAULT_HART_STACK_SIZE. This
may not be sufficient for platforms with deeper call stacks (e.g. those
enabling additional SBI extensions) or may be wasteful for minimal
platforms.
Introduce a HART_STACK_SIZE Kconfig option in lib/sbi/Kconfig with a
valid range of 8192 to 1048576 bytes and a default of 8192 bytes to
preserve existing behavior. The SBI_PLATFORM_DEFAULT_HART_STACK_SIZE
macro now resolves to CONFIG_HART_STACK_SIZE, allowing all platforms
to benefit from a single configuration knob without any source changes.
Signed-off-by: Oriol Catalan <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Link: https://lore.kernel.org/r/VI0P192MB3062735A6194BB6DA72083499E002@VI0P192MB3062.EURP192.PROD.OUTLOOK.COM
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/cppc/objects.mk')
0 files changed, 0 insertions, 0 deletions
