Skip to contentSkip to conversation

of/mips: fix fdt size as be32

PATCH Applied Thomas Chou 2 participants 2 messages Nov 24, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of/mips: fix fdt size as be32

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

---
 arch/mips/kernel/prom.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/kernel/prom.c +1 -1
index e000b27..9dbe583 100644
@@ -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);
Signature · 1 line
1.7.3.2