libc-hooks: added USED_RAM_SIZE and MAX_HEAP_SIZE definitions for riscv32
added USED_RAM_SIZE and MAX_HEAP_SIZE definitions for SOC_RISCV32_QEMU and SOC_RISCV32_PULPINO. Otherwise, not passing sanitycheck Change-Id: Ia32b12e1694dc472e9f7f9eb10c5f2e12e928c3a Signed-off-by: Jean-Paul Etienne <fractalclone@gmail.com>
This commit is contained in:
parent
7cf3688740
commit
716d25e1e2
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@
|
|||
#include <layout.h>
|
||||
#define USED_RAM_SIZE (USED_RAM_END_ADDR - _RAM_ADDR)
|
||||
#define MAX_HEAP_SIZE (_RAM_SIZE - USED_RAM_SIZE)
|
||||
#elif CONFIG_RISCV32
|
||||
#include <soc.h>
|
||||
#define USED_RAM_SIZE (USED_RAM_END_ADDR - RISCV_RAM_BASE)
|
||||
#define MAX_HEAP_SIZE (RISCV_RAM_SIZE - USED_RAM_SIZE)
|
||||
#else
|
||||
#define USED_RAM_SIZE (USED_RAM_END_ADDR - CONFIG_SRAM_BASE_ADDRESS)
|
||||
#define MAX_HEAP_SIZE ((KB(CONFIG_SRAM_SIZE)) - USED_RAM_SIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue