Peter Korsgaard
c088a108c7
fdt_resize(): fix actualsize calculations with unaligned blobs
...
The code in fdt_resize() to extend the fdt size to end on a page boundary
is wrong for fdt's not located at an address aligned on a page boundary.
What's even worse, the code would make actualsize shrink rather than grow
if (blob & 0xfff) was bigger than the amount of padding added by ALIGN(),
causing fdt_add_mem_rsv to fail.
Fix it by aligning end address (blob + size) to a page boundary instead.
For aligned fdt's this is equivalent to what we had before.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-01-17 13:03:29 -05:00
..
2008-08-13 01:40:38 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-11-02 16:23:46 +01:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-29 01:00:20 +01:00
2008-08-31 04:24:55 +02:00
2008-10-18 21:54:03 +02:00
2008-05-21 00:14:08 +02:00
2008-06-03 20:28:50 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-12-07 00:18:53 +01:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-07-14 15:19:07 +02:00
2008-11-02 16:14:22 +01:00
2008-12-07 01:24:53 +01:00
2008-10-18 21:54:03 +02:00
2008-08-21 00:53:02 +02:00
2008-09-10 22:48:05 +02:00
2008-12-09 23:38:46 +01:00
2008-08-18 23:21:49 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-09-10 21:09:37 +02:00
2008-12-14 11:13:52 +01:00
2008-08-06 14:05:38 +02:00
2008-04-13 23:03:02 -07:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-29 10:42:18 -05:00
2008-12-04 22:51:54 -08:00
2008-12-07 01:23:35 +01:00
2008-08-21 13:50:20 -05:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-09-10 22:48:05 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-06-03 20:32:25 +02:00
2008-10-14 14:19:34 +02:00
2008-12-07 01:17:19 +01:00
2008-08-31 04:24:55 +02:00
2008-12-16 01:02:17 +01:00
2008-11-28 21:24:13 +01:00
2008-09-10 21:09:37 +02:00
2008-04-24 17:21:55 +02:00
2008-08-25 23:45:41 +02:00
2008-10-18 21:54:03 +02:00
2008-12-07 01:23:35 +01:00
2008-08-27 02:05:53 +02:00
2008-10-18 21:54:03 +02:00
2008-08-06 14:05:38 +02:00
2008-08-13 01:40:38 +02:00
2008-10-18 21:54:03 +02:00
2008-09-10 22:48:06 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-09-10 22:48:06 +02:00
2008-09-10 22:48:06 +02:00
2008-09-10 22:48:01 +02:00
2008-10-18 21:54:03 +02:00
2008-12-02 13:48:15 -06:00
2008-12-16 00:47:10 +01:00
2009-01-17 13:03:29 -05:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-12-13 23:31:49 +01:00
2008-12-07 01:23:35 +01:00
2008-10-18 21:54:03 +02:00
2008-12-07 00:08:33 +01:00
2008-08-13 01:40:38 +02:00
2008-10-18 21:54:03 +02:00
2008-12-07 01:23:35 +01:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-12-20 11:03:01 +01:00
2008-08-13 01:40:38 +02:00
2008-11-28 21:24:12 +01:00