commit | 5073937784c2fcd9238064600d32b1e93b18c038 | [log] [tgz] |
---|---|---|
author | York Sun <yorksun@freescale.com> | Mon Dec 07 11:05:29 2015 -0800 |
committer | York Sun <yorksun@freescale.com> | Tue Dec 15 08:57:33 2015 +0800 |
tree | 994bb4cf82b7efd6c61866cfd551905859288d2f | |
parent | 0804d56798c9927a240faf5716419174726b7c5e [diff] |
common: Rewrite hiding the end of memory As the name may be confusing, the CONFIG_SYS_MEM_TOP_HIDE reserves some memory from the end of ram, tracked by gd->ram_size. It is not always the top of u-boot visible memory. Rewrite the macro with a weak function to provide flexibility for complex calcuation. Legacy use of this macro is still supported. Signed-off-by: York Sun <yorksun@freescale.com> Reviewed-by: Simon Glass <sjg@chromium.org>