forked from Mirrors/opensbi
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>
This commit is contained in:
@@ -138,6 +138,6 @@ const struct sbi_platform platform = {
|
||||
.name = "Kendryte K210",
|
||||
.features = SBI_PLATFORM_HAS_TIMER_VALUE,
|
||||
.hart_count = K210_HART_COUNT,
|
||||
.hart_stack_size = K210_HART_STACK_SIZE,
|
||||
.hart_stack_size = SBI_PLATFORM_DEFAULT_HART_STACK_SIZE,
|
||||
.platform_ops_addr = (unsigned long)&platform_ops
|
||||
};
|
||||
|
@@ -12,7 +12,6 @@
|
||||
#include <sbi/riscv_io.h>
|
||||
|
||||
#define K210_HART_COUNT 2
|
||||
#define K210_HART_STACK_SIZE 8192
|
||||
|
||||
#define K210_UART_BAUDRATE 115200
|
||||
|
||||
|
Reference in New Issue
Block a user