|
37 | 37 | #include <asm/bootparam.h>
|
38 | 38 | #include <asm/kasan.h>
|
39 | 39 | #include <asm/mmu_context.h>
|
40 |
| -#include <asm/processor.h> |
41 |
| -#include <asm/timex.h> |
42 |
| -#include <asm/platform.h> |
43 | 40 | #include <asm/page.h>
|
44 |
| -#include <asm/setup.h> |
45 | 41 | #include <asm/param.h>
|
| 42 | +#include <asm/platform.h> |
| 43 | +#include <asm/processor.h> |
| 44 | +#include <asm/sections.h> |
| 45 | +#include <asm/setup.h> |
46 | 46 | #include <asm/smp.h>
|
47 | 47 | #include <asm/sysmem.h>
|
| 48 | +#include <asm/timex.h> |
48 | 49 |
|
49 | 50 | #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
|
50 | 51 | struct screen_info screen_info = {
|
@@ -271,49 +272,6 @@ void __init init_arch(bp_tag_t *bp_start)
|
271 | 272 | * Initialize system. Setup memory and reserve regions.
|
272 | 273 | */
|
273 | 274 |
|
274 |
| -extern char _end[]; |
275 |
| -extern char _stext[]; |
276 |
| -extern char _WindowVectors_text_start; |
277 |
| -extern char _WindowVectors_text_end; |
278 |
| -extern char _DebugInterruptVector_text_start; |
279 |
| -extern char _DebugInterruptVector_text_end; |
280 |
| -extern char _KernelExceptionVector_text_start; |
281 |
| -extern char _KernelExceptionVector_text_end; |
282 |
| -extern char _UserExceptionVector_text_start; |
283 |
| -extern char _UserExceptionVector_text_end; |
284 |
| -extern char _DoubleExceptionVector_text_start; |
285 |
| -extern char _DoubleExceptionVector_text_end; |
286 |
| -extern char _exception_text_start; |
287 |
| -extern char _exception_text_end; |
288 |
| -#if XCHAL_EXCM_LEVEL >= 2 |
289 |
| -extern char _Level2InterruptVector_text_start; |
290 |
| -extern char _Level2InterruptVector_text_end; |
291 |
| -#endif |
292 |
| -#if XCHAL_EXCM_LEVEL >= 3 |
293 |
| -extern char _Level3InterruptVector_text_start; |
294 |
| -extern char _Level3InterruptVector_text_end; |
295 |
| -#endif |
296 |
| -#if XCHAL_EXCM_LEVEL >= 4 |
297 |
| -extern char _Level4InterruptVector_text_start; |
298 |
| -extern char _Level4InterruptVector_text_end; |
299 |
| -#endif |
300 |
| -#if XCHAL_EXCM_LEVEL >= 5 |
301 |
| -extern char _Level5InterruptVector_text_start; |
302 |
| -extern char _Level5InterruptVector_text_end; |
303 |
| -#endif |
304 |
| -#if XCHAL_EXCM_LEVEL >= 6 |
305 |
| -extern char _Level6InterruptVector_text_start; |
306 |
| -extern char _Level6InterruptVector_text_end; |
307 |
| -#endif |
308 |
| -#ifdef CONFIG_SMP |
309 |
| -extern char _SecondaryResetVector_text_start; |
310 |
| -extern char _SecondaryResetVector_text_end; |
311 |
| -#endif |
312 |
| -#ifdef CONFIG_XIP_KERNEL |
313 |
| -extern char _xip_start[]; |
314 |
| -extern char _xip_end[]; |
315 |
| -#endif |
316 |
| - |
317 | 275 | static inline int __init_memblock mem_reserve(unsigned long start,
|
318 | 276 | unsigned long end)
|
319 | 277 | {
|
@@ -350,50 +308,50 @@ void __init setup_arch(char **cmdline_p)
|
350 | 308 |
|
351 | 309 | #ifdef CONFIG_VECTORS_ADDR
|
352 | 310 | #ifdef SUPPORT_WINDOWED
|
353 |
| - mem_reserve(__pa(&_WindowVectors_text_start), |
354 |
| - __pa(&_WindowVectors_text_end)); |
| 311 | + mem_reserve(__pa(_WindowVectors_text_start), |
| 312 | + __pa(_WindowVectors_text_end)); |
355 | 313 | #endif
|
356 | 314 |
|
357 |
| - mem_reserve(__pa(&_DebugInterruptVector_text_start), |
358 |
| - __pa(&_DebugInterruptVector_text_end)); |
| 315 | + mem_reserve(__pa(_DebugInterruptVector_text_start), |
| 316 | + __pa(_DebugInterruptVector_text_end)); |
359 | 317 |
|
360 |
| - mem_reserve(__pa(&_KernelExceptionVector_text_start), |
361 |
| - __pa(&_KernelExceptionVector_text_end)); |
| 318 | + mem_reserve(__pa(_KernelExceptionVector_text_start), |
| 319 | + __pa(_KernelExceptionVector_text_end)); |
362 | 320 |
|
363 |
| - mem_reserve(__pa(&_UserExceptionVector_text_start), |
364 |
| - __pa(&_UserExceptionVector_text_end)); |
| 321 | + mem_reserve(__pa(_UserExceptionVector_text_start), |
| 322 | + __pa(_UserExceptionVector_text_end)); |
365 | 323 |
|
366 |
| - mem_reserve(__pa(&_DoubleExceptionVector_text_start), |
367 |
| - __pa(&_DoubleExceptionVector_text_end)); |
| 324 | + mem_reserve(__pa(_DoubleExceptionVector_text_start), |
| 325 | + __pa(_DoubleExceptionVector_text_end)); |
368 | 326 |
|
369 |
| - mem_reserve(__pa(&_exception_text_start), |
370 |
| - __pa(&_exception_text_end)); |
| 327 | + mem_reserve(__pa(_exception_text_start), |
| 328 | + __pa(_exception_text_end)); |
371 | 329 | #if XCHAL_EXCM_LEVEL >= 2
|
372 |
| - mem_reserve(__pa(&_Level2InterruptVector_text_start), |
373 |
| - __pa(&_Level2InterruptVector_text_end)); |
| 330 | + mem_reserve(__pa(_Level2InterruptVector_text_start), |
| 331 | + __pa(_Level2InterruptVector_text_end)); |
374 | 332 | #endif
|
375 | 333 | #if XCHAL_EXCM_LEVEL >= 3
|
376 |
| - mem_reserve(__pa(&_Level3InterruptVector_text_start), |
377 |
| - __pa(&_Level3InterruptVector_text_end)); |
| 334 | + mem_reserve(__pa(_Level3InterruptVector_text_start), |
| 335 | + __pa(_Level3InterruptVector_text_end)); |
378 | 336 | #endif
|
379 | 337 | #if XCHAL_EXCM_LEVEL >= 4
|
380 |
| - mem_reserve(__pa(&_Level4InterruptVector_text_start), |
381 |
| - __pa(&_Level4InterruptVector_text_end)); |
| 338 | + mem_reserve(__pa(_Level4InterruptVector_text_start), |
| 339 | + __pa(_Level4InterruptVector_text_end)); |
382 | 340 | #endif
|
383 | 341 | #if XCHAL_EXCM_LEVEL >= 5
|
384 |
| - mem_reserve(__pa(&_Level5InterruptVector_text_start), |
385 |
| - __pa(&_Level5InterruptVector_text_end)); |
| 342 | + mem_reserve(__pa(_Level5InterruptVector_text_start), |
| 343 | + __pa(_Level5InterruptVector_text_end)); |
386 | 344 | #endif
|
387 | 345 | #if XCHAL_EXCM_LEVEL >= 6
|
388 |
| - mem_reserve(__pa(&_Level6InterruptVector_text_start), |
389 |
| - __pa(&_Level6InterruptVector_text_end)); |
| 346 | + mem_reserve(__pa(_Level6InterruptVector_text_start), |
| 347 | + __pa(_Level6InterruptVector_text_end)); |
390 | 348 | #endif
|
391 | 349 |
|
392 | 350 | #endif /* CONFIG_VECTORS_ADDR */
|
393 | 351 |
|
394 | 352 | #ifdef CONFIG_SMP
|
395 |
| - mem_reserve(__pa(&_SecondaryResetVector_text_start), |
396 |
| - __pa(&_SecondaryResetVector_text_end)); |
| 353 | + mem_reserve(__pa(_SecondaryResetVector_text_start), |
| 354 | + __pa(_SecondaryResetVector_text_end)); |
397 | 355 | #endif
|
398 | 356 | parse_early_param();
|
399 | 357 | bootmem_init();
|
|
0 commit comments