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 --- platform/thead/c910/platform.c | 2 +- platform/thead/c910/platform.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'platform/thead/c910') diff --git a/platform/thead/c910/platform.c b/platform/thead/c910/platform.c index 482caad..ca2e0e2 100644 --- a/platform/thead/c910/platform.c +++ b/platform/thead/c910/platform.c @@ -152,6 +152,6 @@ const struct sbi_platform platform = { .name = "T-HEAD Xuantie c910", .features = SBI_THEAD_FEATURES, .hart_count = C910_HART_COUNT, - .hart_stack_size = C910_HART_STACK_SIZE, + .hart_stack_size = SBI_PLATFORM_DEFAULT_HART_STACK_SIZE, .platform_ops_addr = (unsigned long)&platform_ops }; diff --git a/platform/thead/c910/platform.h b/platform/thead/c910/platform.h index 5dcfae8..5e74128 100644 --- a/platform/thead/c910/platform.h +++ b/platform/thead/c910/platform.h @@ -6,7 +6,6 @@ #define _C910_PLATFORM_H_ #define C910_HART_COUNT 16 -#define C910_HART_STACK_SIZE 8192 #define SBI_THEAD_FEATURES \ (SBI_PLATFORM_HAS_SCOUNTEREN | \ -- cgit v1.2.3