Skip to content

Commit

Permalink
MIPS: FDT size is a be32
Browse files Browse the repository at this point in the history
The totalsize field was be32. And the reserve bootmem would cause failure.

Signed-off-by: Thomas Chou <[email protected]>
To: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: David Daney <[email protected]>
Cc: Dezhong Diao <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/1838/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
hippo5329 authored and ralfbaechle committed Dec 16, 2010
1 parent 5878fc9 commit e31fee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e31fee7

Please sign in to comment.