From 4aab6f32630f72aa947649aee7d9d44a04e39129 Mon Sep 17 00:00:00 2001 From: "haijiao.liu@sophgo.com" Date: Fri, 26 May 2023 10:44:44 +0800 Subject: [PATCH] set scratch and stack size to 8K --- include/sbi/sbi_platform.h | 2 +- include/sbi/sbi_scratch.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h index 546c0a61..47eebe4d 100644 --- a/include/sbi/sbi_platform.h +++ b/include/sbi/sbi_platform.h @@ -136,7 +136,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 16384 /** Representation of a platform */ struct sbi_platform { diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h index 2966188d..400b2c03 100644 --- a/include/sbi/sbi_scratch.h +++ b/include/sbi/sbi_scratch.h @@ -41,7 +41,7 @@ /** Offset of extra space in sbi_scratch */ #define SBI_SCRATCH_EXTRA_SPACE_OFFSET (12 * __SIZEOF_POINTER__) /** Maximum size of sbi_scratch (4KB) */ -#define SBI_SCRATCH_SIZE (0x1000) +#define SBI_SCRATCH_SIZE (0x2000) /* clang-format on */