|
23 | 23 | #include <asm/firmware.h> |
24 | 24 |
|
25 | 25 | #define cpu_to_be_ulong __PASTE(cpu_to_be, BITS_PER_LONG) |
| 26 | +#define __be_word __PASTE(__be, BITS_PER_LONG) |
26 | 27 |
|
27 | 28 | #ifdef CONFIG_CRASH_DUMP |
28 | 29 | void machine_crash_shutdown(struct pt_regs *regs) |
@@ -146,25 +147,25 @@ int __init overlaps_crashkernel(unsigned long start, unsigned long size) |
146 | 147 | } |
147 | 148 |
|
148 | 149 | /* 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; |
152 | 153 |
|
153 | 154 | static struct property crashk_base_prop = { |
154 | 155 | .name = "linux,crashkernel-base", |
155 | | - .length = sizeof(phys_addr_t), |
| 156 | + .length = sizeof(__be_word), |
156 | 157 | .value = &crashk_base |
157 | 158 | }; |
158 | 159 |
|
159 | 160 | static struct property crashk_size_prop = { |
160 | 161 | .name = "linux,crashkernel-size", |
161 | | - .length = sizeof(phys_addr_t), |
| 162 | + .length = sizeof(__be_word), |
162 | 163 | .value = &crashk_size, |
163 | 164 | }; |
164 | 165 |
|
165 | 166 | static struct property memory_limit_prop = { |
166 | 167 | .name = "linux,memory-limit", |
167 | | - .length = sizeof(unsigned long long), |
| 168 | + .length = sizeof(__be_word), |
168 | 169 | .value = &mem_limit, |
169 | 170 | }; |
170 | 171 |
|
@@ -193,11 +194,11 @@ static void __init export_crashk_values(struct device_node *node) |
193 | 194 | } |
194 | 195 | #endif /* CONFIG_CRASH_RESERVE */ |
195 | 196 |
|
196 | | -static phys_addr_t kernel_end; |
| 197 | +static __be_word kernel_end; |
197 | 198 |
|
198 | 199 | static struct property kernel_end_prop = { |
199 | 200 | .name = "linux,kernel-end", |
200 | | - .length = sizeof(phys_addr_t), |
| 201 | + .length = sizeof(__be_word), |
201 | 202 | .value = &kernel_end, |
202 | 203 | }; |
203 | 204 |
|
|
0 commit comments