Skip to content

Commit

Permalink
sandbox: use CONFIG_VAL(SYS_MALLOC_F_LEN) to distinguish malloc pool …
Browse files Browse the repository at this point in the history
…size before relocation

SPL and normal u-boot stage use different malloc pool size
configuration before relocation, so use CONFIG_VAL(SYS_MALLOC_F_LEN)
to fit different boot stage.

Signed-off-by: Andy Yan <[email protected]>

Changes in v3:
- use CONFIG_VAL(), which suggested by Simon

Changes in v2: None

 arch/sandbox/cpu/start.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Philipp Tomsich <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
  • Loading branch information
andyshrk authored and Philipp Tomsich committed Jul 27, 2017
1 parent 9eea501 commit 1fc50d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sandbox/cpu/start.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ int main(int argc, char *argv[])

memset(&data, '\0', sizeof(data));
gd = &data;
#ifdef CONFIG_SYS_MALLOC_F_LEN
#if CONFIG_VAL(SYS_MALLOC_F_LEN)
gd->malloc_base = CONFIG_MALLOC_F_ADDR;
#endif
setup_ram_buf(state);
Expand Down

0 comments on commit 1fc50d7

Please sign in to comment.