diff options
author | Jeremy Kerr <jeremy.kerr@canonical.com> | 2010-01-30 04:14:19 -0700 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-02-09 08:34:10 -0700 |
commit | 087f79c48c090a2c0cd9ee45231d63290d2036d2 (patch) | |
tree | c5d96d02ed64447ce36a68fe781a73a42a8ad19d /arch | |
parent | 337148812f97368a8ec4a69f1691e4c5ce3af494 (diff) | |
download | kernel_samsung_crespo-087f79c48c090a2c0cd9ee45231d63290d2036d2.zip kernel_samsung_crespo-087f79c48c090a2c0cd9ee45231d63290d2036d2.tar.gz kernel_samsung_crespo-087f79c48c090a2c0cd9ee45231d63290d2036d2.tar.bz2 |
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')
-rw-r--r-- | arch/powerpc/kernel/prom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index 40fce1c..43c78d7 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c @@ -98,7 +98,7 @@ static void __init move_device_tree(void) DBG("-> move_device_tree\n"); start = __pa(initial_boot_params); - size = initial_boot_params->totalsize; + size = be32_to_cpu(initial_boot_params->totalsize); if ((memory_limit && (start + size) > memory_limit) || overlaps_crashkernel(start, size)) { |