diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-10-18 09:42:50 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-10-18 09:42:52 +0200 |
commit | 834f6bf5e5f1169065376ad1aeb6a6266e66ce5c (patch) | |
tree | 1b98924d467ea04b2417898a70cc725f0f2f6efd /dts/src/arm/rk3xxx.dtsi | |
parent | 3c4cb21e75069370d915c3790683a252d9b213fd (diff) | |
download | barebox-834f6bf5e5f1169065376ad1aeb6a6266e66ce5c.tar.gz barebox-834f6bf5e5f1169065376ad1aeb6a6266e66ce5c.tar.xz |
ARM: bootm: Fix free_mem calculation when initrd is given
When a initrd is given we calculate the next free memory position
as:
free_mem = PAGE_ALIGN(initrd_end);
This is wrong when initrd_end exactly falls on a page boundary.
In this case PAGE_ALIGN() does nothing and free_mem becomes
initrd_end and the following bootm_load_devicetree() and thus
booting fails with -ENOMEM.
Fix this by correctly advancing to the next free memory position.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'dts/src/arm/rk3xxx.dtsi')
0 files changed, 0 insertions, 0 deletions