aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/machine_kexec.c
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2010-07-21 07:14:54 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-07-31 00:56:30 -0400
commitbbc8e30f17077f83fdeeeca0cf70e0f179279282 (patch)
treeeb98a7a41b2e2b690ba8bf235f268b3db08df5b0 /arch/powerpc/kernel/machine_kexec.c
parentfc53b4202e61c7e9008c241933ae282aab8a6082 (diff)
powerpc/crashdump: Fix issues with kexec and 36bit physical addr
Fix sizes of variables so correct values are exported via /proc. Cast variable in comparison to avoid compiler error. Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/machine_kexec.c')
-rw-r--r--arch/powerpc/kernel/machine_kexec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c
index bb3d893a8353..6ff15f03dcc4 100644
--- a/arch/powerpc/kernel/machine_kexec.c
+++ b/arch/powerpc/kernel/machine_kexec.c
@@ -144,24 +144,24 @@ int overlaps_crashkernel(unsigned long start, unsigned long size)
144} 144}
145 145
146/* Values we need to export to the second kernel via the device tree. */ 146/* Values we need to export to the second kernel via the device tree. */
147static unsigned long kernel_end; 147static phys_addr_t kernel_end;
148static unsigned long crashk_size; 148static phys_addr_t crashk_size;
149 149
150static struct property kernel_end_prop = { 150static struct property kernel_end_prop = {
151 .name = "linux,kernel-end", 151 .name = "linux,kernel-end",
152 .length = sizeof(unsigned long), 152 .length = sizeof(phys_addr_t),
153 .value = &kernel_end, 153 .value = &kernel_end,
154}; 154};
155 155
156static struct property crashk_base_prop = { 156static struct property crashk_base_prop = {
157 .name = "linux,crashkernel-base", 157 .name = "linux,crashkernel-base",
158 .length = sizeof(unsigned long), 158 .length = sizeof(phys_addr_t),
159 .value = &crashk_res.start, 159 .value = &crashk_res.start,
160}; 160};
161 161
162static struct property crashk_size_prop = { 162static struct property crashk_size_prop = {
163 .name = "linux,crashkernel-size", 163 .name = "linux,crashkernel-size",
164 .length = sizeof(unsigned long), 164 .length = sizeof(phys_addr_t),
165 .value = &crashk_size, 165 .value = &crashk_size,
166}; 166};
167 167