|
26 | 26 | #include <asm/asm-offsets.h>
|
27 | 27 | #include <linux/of_fdt.h>
|
28 | 28 |
|
29 |
| -#define tophys(rd,rs) \ |
30 |
| - l.movhi rd,hi(-KERNELBASE) ;\ |
| 29 | +#define tophys(rd,rs) \ |
| 30 | + l.movhi rd,hi(-KERNELBASE) ;\ |
31 | 31 | l.add rd,rd,rs
|
32 | 32 |
|
33 |
| -#define CLEAR_GPR(gpr) \ |
| 33 | +#define CLEAR_GPR(gpr) \ |
34 | 34 | l.movhi gpr,0x0
|
35 | 35 |
|
36 |
| -#define LOAD_SYMBOL_2_GPR(gpr,symbol) \ |
37 |
| - l.movhi gpr,hi(symbol) ;\ |
| 36 | +#define LOAD_SYMBOL_2_GPR(gpr,symbol) \ |
| 37 | + l.movhi gpr,hi(symbol) ;\ |
38 | 38 | l.ori gpr,gpr,lo(symbol)
|
39 | 39 |
|
40 | 40 |
|
|
326 | 326 | l.addi r1,r1,-(INT_FRAME_SIZE) ;\
|
327 | 327 | /* r1 is KSP, r30 is __pa(KSP) */ ;\
|
328 | 328 | tophys (r30,r1) ;\
|
329 |
| - l.sw PT_GPR12(r30),r12 ;\ |
| 329 | + l.sw PT_GPR12(r30),r12 ;\ |
330 | 330 | l.mfspr r12,r0,SPR_EPCR_BASE ;\
|
331 | 331 | l.sw PT_PC(r30),r12 ;\
|
332 | 332 | l.mfspr r12,r0,SPR_ESR_BASE ;\
|
333 | 333 | l.sw PT_SR(r30),r12 ;\
|
334 | 334 | /* save r31 */ ;\
|
335 | 335 | EXCEPTION_T_LOAD_GPR30(r12) ;\
|
336 |
| - l.sw PT_GPR30(r30),r12 ;\ |
| 336 | + l.sw PT_GPR30(r30),r12 ;\ |
337 | 337 | /* save r10 as was prior to exception */ ;\
|
338 | 338 | EXCEPTION_T_LOAD_GPR10(r12) ;\
|
339 |
| - l.sw PT_GPR10(r30),r12 ;\ |
340 |
| - /* save PT_SP as was prior to exception */ ;\ |
| 339 | + l.sw PT_GPR10(r30),r12 ;\ |
| 340 | + /* save PT_SP as was prior to exception */ ;\ |
341 | 341 | EXCEPTION_T_LOAD_SP(r12) ;\
|
342 | 342 | l.sw PT_SP(r30),r12 ;\
|
343 |
| - l.sw PT_GPR13(r30),r13 ;\ |
| 343 | + l.sw PT_GPR13(r30),r13 ;\ |
344 | 344 | /* --> */ ;\
|
345 | 345 | /* save exception r4, set r4 = EA */ ;\
|
346 | 346 | l.sw PT_GPR4(r30),r4 ;\
|
|
357 | 357 |
|
358 | 358 | /* =====================================================[ exceptions] === */
|
359 | 359 |
|
| 360 | + __HEAD |
| 361 | + |
360 | 362 | /* ---[ 0x100: RESET exception ]----------------------------------------- */
|
361 | 363 | .org 0x100
|
362 | 364 | /* Jump to .init code at _start which lives in the .head section
|
@@ -394,7 +396,7 @@ _dispatch_do_ipage_fault:
|
394 | 396 | .org 0x500
|
395 | 397 | EXCEPTION_HANDLE(_timer_handler)
|
396 | 398 |
|
397 |
| -/* ---[ 0x600: Alignment exception ]-------------------------------------- */ |
| 399 | +/* ---[ 0x600: Alignment exception ]------------------------------------- */ |
398 | 400 | .org 0x600
|
399 | 401 | EXCEPTION_HANDLE(_alignment_handler)
|
400 | 402 |
|
@@ -424,7 +426,7 @@ _dispatch_do_ipage_fault:
|
424 | 426 | .org 0xc00
|
425 | 427 | EXCEPTION_HANDLE(_sys_call_handler)
|
426 | 428 |
|
427 |
| -/* ---[ 0xd00: Floating point exception ]--------------------------------- */ |
| 429 | +/* ---[ 0xd00: Floating point exception ]-------------------------------- */ |
428 | 430 | .org 0xd00
|
429 | 431 | EXCEPTION_HANDLE(_fpe_trap_handler)
|
430 | 432 |
|
@@ -506,10 +508,10 @@ _dispatch_do_ipage_fault:
|
506 | 508 |
|
507 | 509 | /* .text*/
|
508 | 510 |
|
509 |
| -/* This early stuff belongs in HEAD, but some of the functions below definitely |
| 511 | +/* This early stuff belongs in the .init.text section, but some of the functions below definitely |
510 | 512 | * don't... */
|
511 | 513 |
|
512 |
| - __HEAD |
| 514 | + __INIT |
513 | 515 | .global _start
|
514 | 516 | _start:
|
515 | 517 | /* Init r0 to zero as per spec */
|
@@ -816,7 +818,7 @@ secondary_start:
|
816 | 818 |
|
817 | 819 | #endif
|
818 | 820 |
|
819 |
| -/* ========================================[ cache ]=== */ |
| 821 | +/* ==========================================================[ cache ]=== */ |
820 | 822 |
|
821 | 823 | /* alignment here so we don't change memory offsets with
|
822 | 824 | * memory controller defined
|
|
0 commit comments