summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sbi/sbi_platform.h2
-rw-r--r--lib/sbi/Kconfig5
2 files changed, 6 insertions, 1 deletions
diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h
index 5cbc1bc3..1e9a23c1 100644
--- a/include/sbi/sbi_platform.h
+++ b/include/sbi/sbi_platform.h
@@ -164,7 +164,7 @@ struct sbi_platform_operations {
};
/** Platform default per-HART stack size for exception/interrupt handling */
-#define SBI_PLATFORM_DEFAULT_HART_STACK_SIZE 8192
+#define SBI_PLATFORM_DEFAULT_HART_STACK_SIZE CONFIG_DEFAULT_HART_STACK_SIZE
/** Platform default heap size */
#define SBI_PLATFORM_DEFAULT_HEAP_SIZE(__num_hart) \
diff --git a/lib/sbi/Kconfig b/lib/sbi/Kconfig
index 89245a25..e76aecca 100644
--- a/lib/sbi/Kconfig
+++ b/lib/sbi/Kconfig
@@ -2,6 +2,11 @@
menu "Generic SBI Support"
+config DEFAULT_HART_STACK_SIZE
+ int "Default per-HART stack size (bytes)"
+ range 8192 1048576
+ default 8192
+
config CONSOLE_EARLY_BUFFER_SIZE
int "Early console buffer size (bytes)"
default 256