diff options
author | Simon Glass <sjg@chromium.org> | 2016-08-04 21:58:14 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-08-08 13:32:59 -0400 |
commit | 45313e83b842ab31464e2593ab2e39aa0287fbf7 (patch) | |
tree | ec6708dde57defb95796d17559c67ee4372ca394 /include/serial.h | |
parent | 43caa9a8790e0235f82f15be8dce37bfe4715865 (diff) | |
download | u-boot-imx-45313e83b842ab31464e2593ab2e39aa0287fbf7.zip u-boot-imx-45313e83b842ab31464e2593ab2e39aa0287fbf7.tar.gz u-boot-imx-45313e83b842ab31464e2593ab2e39aa0287fbf7.tar.bz2 |
tiny-printf: Adjust to avoid using data section
We can pass all the variables down to the functions that need them, and
then everything is on the stack. This is safer than using the data section.
At least on firefly-rk3288, the code size is the same and the data size is
12 bytes smaller:
before:
18865 2636 40 21541 5425 b/firefly-rk3288/spl/u-boot-spl
after:
18865 2624 40 21529 5419 b/firefly-rk3288/spl/u-boot-spl
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/serial.h')
0 files changed, 0 insertions, 0 deletions