.. | .. |
---|
29 | 29 | .begin no-absolute-literals |
---|
30 | 30 | .literal_position |
---|
31 | 31 | |
---|
32 | | -#if defined(CONFIG_INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX) && \ |
---|
33 | | - XCHAL_HAVE_PTP_MMU && XCHAL_HAVE_SPANNING_WAY |
---|
34 | | - .literal RomInitAddr, CONFIG_KERNEL_LOAD_ADDRESS |
---|
35 | | -#else |
---|
36 | | - .literal RomInitAddr, KERNELOFFSET |
---|
37 | | -#endif |
---|
38 | | -#ifndef CONFIG_PARSE_BOOTPARAM |
---|
39 | | - .literal RomBootParam, 0 |
---|
40 | | -#else |
---|
41 | | - .literal RomBootParam, _bootparam |
---|
42 | | - |
---|
| 32 | +#ifdef CONFIG_PARSE_BOOTPARAM |
---|
43 | 33 | .align 4 |
---|
44 | 34 | _bootparam: |
---|
45 | 35 | .short BP_TAG_FIRST |
---|
.. | .. |
---|
66 | 56 | initialize_mmu |
---|
67 | 57 | #endif |
---|
68 | 58 | |
---|
69 | | - .end no-absolute-literals |
---|
70 | | - |
---|
71 | 59 | rsil a0, XCHAL_DEBUGLEVEL-1 |
---|
72 | 60 | rsync |
---|
73 | 61 | reset: |
---|
74 | | - l32r a0, RomInitAddr |
---|
75 | | - l32r a2, RomBootParam |
---|
| 62 | +#if defined(CONFIG_INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX) && \ |
---|
| 63 | + XCHAL_HAVE_PTP_MMU && XCHAL_HAVE_SPANNING_WAY |
---|
| 64 | + movi a0, CONFIG_KERNEL_LOAD_ADDRESS |
---|
| 65 | +#else |
---|
| 66 | + movi a0, KERNELOFFSET |
---|
| 67 | +#endif |
---|
| 68 | +#ifdef CONFIG_PARSE_BOOTPARAM |
---|
| 69 | + movi a2, _bootparam |
---|
| 70 | +#else |
---|
| 71 | + movi a2, 0 |
---|
| 72 | +#endif |
---|
76 | 73 | movi a3, 0 |
---|
77 | 74 | movi a4, 0 |
---|
78 | 75 | jx a0 |
---|
| 76 | + |
---|
| 77 | + .end no-absolute-literals |
---|