summaryrefslogtreecommitdiff
path: root/platform/andes
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2020-03-13 08:39:54 +0300
committerAnup Patel <anup@brainfault.org>2020-03-14 06:44:00 +0300
commit72a0628c7e8063f1e6c02541cbd459eff617dd07 (patch)
treee07f26d457e2a6e672116ca08eccb4a367dedfe0 /platform/andes
parent2343efd0401c329187f1375114b79dd2fb102e55 (diff)
downloadopensbi-72a0628c7e8063f1e6c02541cbd459eff617dd07.tar.xz
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 <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform/andes')
-rw-r--r--platform/andes/ae350/platform.c2
-rw-r--r--platform/andes/ae350/platform.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/platform/andes/ae350/platform.c b/platform/andes/ae350/platform.c
index b85cec4..db5b46e 100644
--- a/platform/andes/ae350/platform.c
+++ b/platform/andes/ae350/platform.c
@@ -186,6 +186,6 @@ const struct sbi_platform platform = {
.name = "Andes AE350",
.features = SBI_PLATFORM_DEFAULT_FEATURES,
.hart_count = AE350_HART_COUNT,
- .hart_stack_size = AE350_HART_STACK_SIZE,
+ .hart_stack_size = SBI_PLATFORM_DEFAULT_HART_STACK_SIZE,
.platform_ops_addr = (unsigned long)&platform_ops
};
diff --git a/platform/andes/ae350/platform.h b/platform/andes/ae350/platform.h
index eff2996..062b656 100644
--- a/platform/andes/ae350/platform.h
+++ b/platform/andes/ae350/platform.h
@@ -12,7 +12,6 @@
#define _AE350_PLATFORM_H_
#define AE350_HART_COUNT 4
-#define AE350_HART_STACK_SIZE 8192
#define AE350_PLIC_ADDR 0xe4000000
#define AE350_PLIC_NUM_SOURCES 71