Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e31fee7c authored by Thomas Chou's avatar Thomas Chou Committed by Ralf Baechle
Browse files

MIPS: FDT size is a be32



The totalsize field was be32. And the reserve bootmem would cause failure.

Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
To: devicetree-discuss@lists.ozlabs.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: grant.likely@secretlab.ca
Cc: David Daney <ddaney@caviumnetworks.com>
Cc: Dezhong Diao <dediao@cisco.com>
Patchwork: https://patchwork.linux-mips.org/patch/1838/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 5878fc93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ void __init device_tree_init(void)
		return;

	base = virt_to_phys((void *)initial_boot_params);
	size = initial_boot_params->totalsize;
	size = be32_to_cpu(initial_boot_params->totalsize);

	/* Before we do anything, lets reserve the dt blob */
	reserve_mem_mach(base, size);