3 #ifndef XCHAL_VECBASE_RESET_VADDR
4 #define XCHAL_VECBASE_RESET_VADDR XCHAL_WINDOW_VECTORS_VADDR
5 #define XCHAL_WINDOW_OF4_VECOFS 0x00000000
6 #define XCHAL_WINDOW_UF4_VECOFS 0x00000040
7 #define XCHAL_WINDOW_OF8_VECOFS 0x00000080
8 #define XCHAL_WINDOW_UF8_VECOFS 0x000000C0
9 #define XCHAL_WINDOW_OF12_VECOFS 0x00000100
10 #define XCHAL_WINDOW_UF12_VECOFS 0x00000140
13 #define RAM_SIZE 0x08000000 /* 128M */
14 #define ROM_SIZE 0x00001000 /* 4k */
15 #define VECTORS_RESERVED_SIZE 0x1000
18 OUTPUT_FORMAT("elf32-xtensa-be")
20 OUTPUT_FORMAT("elf32-xtensa-le")
25 ram : ORIGIN = XCHAL_VECBASE_RESET_VADDR, LENGTH = RAM_SIZE
26 rom : ORIGIN = XCHAL_RESET_VECTOR_VADDR, LENGTH = ROM_SIZE
37 #if XCHAL_HAVE_WINDOWED
38 .vector.window XCHAL_WINDOW_VECTORS_VADDR :
40 . = XCHAL_WINDOW_OF4_VECOFS;
41 *(.vector.window_overflow_4)
42 . = XCHAL_WINDOW_UF4_VECOFS;
43 *(.vector.window_underflow_4)
44 . = XCHAL_WINDOW_OF8_VECOFS;
45 *(.vector.window_overflow_8)
46 . = XCHAL_WINDOW_UF8_VECOFS;
47 *(.vector.window_underflow_8)
48 . = XCHAL_WINDOW_OF12_VECOFS;
49 *(.vector.window_overflow_12)
50 . = XCHAL_WINDOW_UF12_VECOFS;
51 *(.vector.window_underflow_12)
54 #if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 2
55 .vector.level2 XCHAL_INTLEVEL2_VECTOR_VADDR :
60 #if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 3
61 .vector.level3 XCHAL_INTLEVEL3_VECTOR_VADDR :
66 #if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 4
67 .vector.level4 XCHAL_INTLEVEL4_VECTOR_VADDR :
72 #if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 5
73 .vector.level5 XCHAL_INTLEVEL5_VECTOR_VADDR :
78 #if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 6
79 .vector.level6 XCHAL_INTLEVEL6_VECTOR_VADDR :
84 #if XCHAL_NUM_INTLEVELS + XCHAL_HAVE_NMI >= 7
85 .vector.level7 XCHAL_INTLEVEL7_VECTOR_VADDR :
90 .vector.kernel XCHAL_KERNEL_VECTOR_VADDR :
94 .vector.user XCHAL_USER_VECTOR_VADDR :
98 .vector.double XCHAL_DOUBLEEXC_VECTOR_VADDR :
103 .vector.text XCHAL_VECBASE_RESET_VADDR + VECTORS_RESERVED_SIZE :
105 *(.vector.window_overflow_4.*)
106 *(.vector.window_underflow_4.*)
107 *(.vector.window_overflow_8.*)
108 *(.vector.window_underflow_8.*)
109 *(.vector.window_overflow_12.*)
110 *(.vector.window_underflow_12.*)
127 *(.text .stub .text.* .gnu.linkonce.t.* .literal .literal.*)
135 *(.rodata .rodata.* .gnu.linkonce.r.*)
144 *(.data .data.* .gnu.linkonce.d.*)
147 *(.sdata .sdata.* .gnu.linkonce.s.*)
156 *(.sbss .sbss.* .gnu.linkonce.sb.*)
159 *(.bss .bss.* .gnu.linkonce.b.*)
166 PROVIDE(_fstack = (ORIGIN(ram) & 0xf0000000) + LENGTH(ram) - 16);