From 72a0628c7e8063f1e6c02541cbd459eff617dd07 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Thu, 12 Mar 2020 22:39:54 -0700 Subject: platform: Use one unified per-HART stack size macro for all platforms As of today all platforms use 8KB of per-HART stack hence there is no need for each platform to define its own macro or use the magic number. Create one macro for all platforms. Platform still can use its own version if needed. Signed-off-by: Bin Meng Reviewed-by: Anup Patel --- include/sbi/sbi_platform.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/sbi/sbi_platform.h') diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h index e4f1a7d..bc7991c 100644 --- a/include/sbi/sbi_platform.h +++ b/include/sbi/sbi_platform.h @@ -161,6 +161,9 @@ struct sbi_platform_operations { struct sbi_trap_info *out_trap); } __packed; +/** Platform default per-HART stack size for exception/interrupt handling */ +#define SBI_PLATFORM_DEFAULT_HART_STACK_SIZE 8192 + /** Representation of a platform */ struct sbi_platform { /** -- cgit v1.2.3