aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorJeremy Kerr <jeremy.kerr@canonical.com>2010-01-30 06:14:19 -0500
committerGrant Likely <grant.likely@secretlab.ca>2010-02-09 10:34:10 -0500
commit087f79c48c090a2c0cd9ee45231d63290d2036d2 (patch)
treec5d96d02ed64447ce36a68fe781a73a42a8ad19d /arch/powerpc/kernel
parent337148812f97368a8ec4a69f1691e4c5ce3af494 (diff)
of/flattree: endian-convert members of boot_param_header
The boot_param_header has big-endian fields, so change the types to __be32, and perform endian conversion when we access them. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/prom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 40fce1c2f33b..43c78d74ddcb 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -98,7 +98,7 @@ static void __init move_device_tree(void)
98 DBG("-> move_device_tree\n"); 98 DBG("-> move_device_tree\n");
99 99
100 start = __pa(initial_boot_params); 100 start = __pa(initial_boot_params);
101 size = initial_boot_params->totalsize; 101 size = be32_to_cpu(initial_boot_params->totalsize);
102 102
103 if ((memory_limit && (start + size) > memory_limit) || 103 if ((memory_limit && (start + size) > memory_limit) ||
104 overlaps_crashkernel(start, size)) { 104 overlaps_crashkernel(start, size)) {