summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/prom.c
diff options
context:
space:
mode:
authorThomas Chou2010-11-24 08:35:48 +0100
committerRalf Baechle2010-12-16 19:10:58 +0100
commite31fee7c3a197d88d1d0ced0e8600386da27fec4 (patch)
treec18649da51706088339ba3426d6da32d61431450 /arch/mips/kernel/prom.c
parentMIPS: Fix CP0 COUNTER clockevent race (diff)
downloadkernel-qcow2-linux-e31fee7c3a197d88d1d0ced0e8600386da27fec4.tar.gz
kernel-qcow2-linux-e31fee7c3a197d88d1d0ced0e8600386da27fec4.tar.xz
kernel-qcow2-linux-e31fee7c3a197d88d1d0ced0e8600386da27fec4.zip
MIPS: FDT size is a be32
The totalsize field was be32. And the reserve bootmem would cause failure. Signed-off-by: Thomas 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: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/prom.c')
-rw-r--r--arch/mips/kernel/prom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c
index e000b278f024..9dbe58368953 100644
--- a/arch/mips/kernel/prom.c
+++ b/arch/mips/kernel/prom.c
@@ -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);