diff options
author | Tom Rini <trini@konsulko.com> | 2022-05-27 12:48:32 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-06-06 12:09:28 -0400 |
commit | 10f6e4dc3a16c21f235416f975ecf2070ceb351f (patch) | |
tree | 7854a4f1c53b9c408f4924f757f27701c3aef5c5 /include/system-constants.h | |
parent | 6600b355c71e80c99d8edb8603dd5e3df8ed4db8 (diff) |
Convert CONFIG_SYS_SPL_MALLOC_SIZE et al to Kconfig
This converts the following to Kconfig:
CONFIG_SYS_SPL_MALLOC_SIZE
CONFIG_SYS_SPL_MALLOC_START
We introduce a default value here as well, and CONFIG_SYS_SPL_MALLOC to
control if we have a malloc pool or not.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/system-constants.h')
-rw-r--r-- | include/system-constants.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/system-constants.h b/include/system-constants.h index de66fece957..83b41b384f3 100644 --- a/include/system-constants.h +++ b/include/system-constants.h @@ -19,4 +19,14 @@ #endif #endif +/* + * Typically, we have the SPL malloc pool at the end of the BSS area. + */ +#ifdef CONFIG_HAS_CUSTOM_SPL_MALLOC_START +#define SYS_SPL_MALLOC_START CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR +#else +#define SYS_SPL_MALLOC_START (CONFIG_SPL_BSS_START_ADDR + \ + CONFIG_SPL_BSS_MAX_SIZE) +#endif + #endif |