aboutsummaryrefslogtreecommitdiff
path: root/platform/nuclei
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2023-04-17 11:28:03 +0530
committerAnup Patel <anup@brainfault.org>2023-06-05 15:45:33 +0530
commit5cf9a540164a018a31a679578a27eb964af0340d (patch)
tree0fc0efdd1e8692b7592ab66dcc35a21a12e26000 /platform/nuclei
parentaad7a377051136c2e0f4adeea2689167a294d2b4 (diff)
downloadopensbi-5cf9a540164a018a31a679578a27eb964af0340d.zip
opensbi-5cf9a540164a018a31a679578a27eb964af0340d.tar.gz
opensbi-5cf9a540164a018a31a679578a27eb964af0340d.tar.bz2
platform: Allow platforms to specify heap size
We extend struct sbi_platform and struct sbi_scratch to allow platforms specify the heap size to the OpenSBI firmwares. The OpenSBI firmwares will use this information to determine the location of heap and provide heap base address in per-HART scratch space. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Diffstat (limited to 'platform/nuclei')
-rw-r--r--platform/nuclei/ux600/platform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/nuclei/ux600/platform.c b/platform/nuclei/ux600/platform.c
index 4eccff1..6fd6cd7 100644
--- a/platform/nuclei/ux600/platform.c
+++ b/platform/nuclei/ux600/platform.c
@@ -244,5 +244,7 @@ const struct sbi_platform platform = {
.features = SBI_PLATFORM_DEFAULT_FEATURES,
.hart_count = UX600_HART_COUNT,
.hart_stack_size = SBI_PLATFORM_DEFAULT_HART_STACK_SIZE,
+ .heap_size =
+ SBI_PLATFORM_DEFAULT_HEAP_SIZE(UX600_HART_COUNT),
.platform_ops_addr = (unsigned long)&platform_ops
};