Skip to content

Commit 00aa9dd

Browse files
author
Fox Snowpatch
committed
1 parent 85ff933 commit 00aa9dd

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

arch/powerpc/kexec/core.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <asm/firmware.h>
2424

2525
#define cpu_to_be_ulong __PASTE(cpu_to_be, BITS_PER_LONG)
26+
#define __be_word __PASTE(__be, BITS_PER_LONG)
2627

2728
#ifdef CONFIG_CRASH_DUMP
2829
void machine_crash_shutdown(struct pt_regs *regs)
@@ -146,25 +147,25 @@ int __init overlaps_crashkernel(unsigned long start, unsigned long size)
146147
}
147148

148149
/* Values we need to export to the second kernel via the device tree. */
149-
static phys_addr_t crashk_base;
150-
static phys_addr_t crashk_size;
151-
static unsigned long long mem_limit;
150+
static __be_word crashk_base;
151+
static __be_word crashk_size;
152+
static __be_word mem_limit;
152153

153154
static struct property crashk_base_prop = {
154155
.name = "linux,crashkernel-base",
155-
.length = sizeof(phys_addr_t),
156+
.length = sizeof(__be_word),
156157
.value = &crashk_base
157158
};
158159

159160
static struct property crashk_size_prop = {
160161
.name = "linux,crashkernel-size",
161-
.length = sizeof(phys_addr_t),
162+
.length = sizeof(__be_word),
162163
.value = &crashk_size,
163164
};
164165

165166
static struct property memory_limit_prop = {
166167
.name = "linux,memory-limit",
167-
.length = sizeof(unsigned long long),
168+
.length = sizeof(__be_word),
168169
.value = &mem_limit,
169170
};
170171

@@ -193,11 +194,11 @@ static void __init export_crashk_values(struct device_node *node)
193194
}
194195
#endif /* CONFIG_CRASH_RESERVE */
195196

196-
static phys_addr_t kernel_end;
197+
static __be_word kernel_end;
197198

198199
static struct property kernel_end_prop = {
199200
.name = "linux,kernel-end",
200-
.length = sizeof(phys_addr_t),
201+
.length = sizeof(__be_word),
201202
.value = &kernel_end,
202203
};
203204

0 commit comments

Comments
 (0)