projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5878fc9
)
MIPS: FDT size is a be32
author
Thomas Chou
<
[email protected]
>
Wed, 24 Nov 2010 07:35:48 +0000
(15:35 +0800)
committer
Ralf Baechle
<
[email protected]
>
Thu, 16 Dec 2010 18:10:58 +0000
(18:10 +0000)
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]
>
arch/mips/kernel/prom.c
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/prom.c
b/arch/mips/kernel/prom.c
index e000b278f0243cfdfa1986be89b728c5b371a480..9dbe58368953809f721e845a004f98cb57809dba 100644
(file)
--- 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);