platform: Allow platforms to specify heap size
authorAnup Patel <apatel@ventanamicro.com>
Mon, 17 Apr 2023 05:58:03 +0000 (11:28 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 5 Jun 2023 10:15:33 +0000 (15:45 +0530)
commit5cf9a540164a018a31a679578a27eb964af0340d
tree0fc0efdd1e8692b7592ab66dcc35a21a12e26000
parentaad7a377051136c2e0f4adeea2689167a294d2b4
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>
firmware/fw_base.S
include/sbi/sbi_platform.h
include/sbi/sbi_scratch.h
platform/fpga/ariane/platform.c
platform/fpga/openpiton/platform.c
platform/generic/platform.c
platform/kendryte/k210/platform.c
platform/nuclei/ux600/platform.c
platform/template/platform.c