Browse Source

Merge branch 'master' of /home/wd/git/u-boot/custodians

Wolfgang Denk 16 năm trước cách đây
mục cha
commit
65ff996802
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      common/fdt_support.c

+ 1 - 1
common/fdt_support.c

@@ -610,7 +610,7 @@ int fdt_resize(void *blob)
 		fdt_size_dt_strings(blob) + sizeof(struct fdt_reserve_entry);
 		fdt_size_dt_strings(blob) + sizeof(struct fdt_reserve_entry);
 
 
 	/* Make it so the fdt ends on a page boundary */
 	/* Make it so the fdt ends on a page boundary */
-	actualsize = ALIGN(actualsize, 0x1000);
+	actualsize = ALIGN(actualsize + ((uint)blob & 0xfff), 0x1000);
 	actualsize = actualsize - ((uint)blob & 0xfff);
 	actualsize = actualsize - ((uint)blob & 0xfff);
 
 
 	/* Change the fdt header to reflect the correct size */
 	/* Change the fdt header to reflect the correct size */