Ticket #9461: 106-ramips_kernel_init_section_offset.patch

File 106-ramips_kernel_init_section_offset.patch, 402 bytes (added by Sergiy <piratfm@…>, 6 years ago)

This patch - is replace for 106-ramips_kernel_start_dirtyhack.patch It adds offset to .init kernel section to 0x80220000

Line 
1+++ a/arch/mips/kernel/vmlinux.lds.S
2+++ b/arch/mips/kernel/vmlinux.lds.S
3@@ -92,6 +92,12 @@ SECTIONS
4        }
5        _edata =  .;                    /* End of data section */
6 
7+#ifdef CONFIG_SPI_RAMIPS
8+       /* This hack need for SPI devices work only */
9+       /* init need start > 0x80220000 */
10+       . = 0xffffffff80220000;
11+#endif
12+
13        /* will be freed after init */
14        . = ALIGN(PAGE_SIZE);           /* Init code and data */
15        __init_begin = .;