2 * Copyright 2004-2009 Analog Devices Inc.
4 * Licensed under the GPL-2 or later
7 #include <asm-generic/vmlinux.lds.h>
8 #include <asm/mem_map.h>
10 #include <asm/thread_info.h>
12 OUTPUT_FORMAT("elf32-bfin")
14 _jiffies = _jiffies_64;
19 /* Neither the text, ro_data or bss section need to be aligned
20 * So pack them back to back
28 #ifndef CONFIG_SCHEDULE_L1
42 ___start___ex_table = .;
44 ___stop___ex_table = .;
51 /* Just in case the first read only is a 32-bit access */
73 /* This gets done first, so the glob doesn't suck it in */
74 CACHELINE_ALIGNED_DATA(32)
78 *(.data_l1.cacheline_aligned)
86 *(.data_l2.cacheline_aligned)
93 INIT_TASK_DATA(THREAD_SIZE)
98 /* The init section should be last, so when we free it, it goes into
99 * the general memory pool, and (hopefully) will decrease fragmentation
100 * a tiny bit. The init section has a _requirement_ that it be
103 . = ALIGN(PAGE_SIZE);
106 INIT_TEXT_SECTION(PAGE_SIZE)
108 INIT_DATA_SECTION(16)
111 /* we have to discard exit text and such at runtime, not link time, to
112 * handle embedded cross-section references (alt instructions, bug
113 * table, eh_frame, etc...)
124 .text_l1 L1_CODE_START : AT(LOADADDR(.exit.data) + SIZEOF(.exit.data))
129 #ifdef CONFIG_SCHEDULE_L1
135 __text_l1_lma = LOADADDR(.text_l1);
136 __text_l1_len = SIZEOF(.text_l1);
137 ASSERT (__text_l1_len <= L1_CODE_LENGTH, "L1 text overflow!")
139 .data_l1 L1_DATA_A_START : AT(__text_l1_lma + __text_l1_len)
147 *(.data_l1.cacheline_aligned)
155 __data_l1_lma = LOADADDR(.data_l1);
156 __data_l1_len = SIZEOF(.data_l1);
157 ASSERT (__data_l1_len <= L1_DATA_A_LENGTH, "L1 data A overflow!")
159 .data_b_l1 L1_DATA_B_START : AT(__data_l1_lma + __data_l1_len)
172 __data_b_l1_lma = LOADADDR(.data_b_l1);
173 __data_b_l1_len = SIZEOF(.data_b_l1);
174 ASSERT (__data_b_l1_len <= L1_DATA_B_LENGTH, "L1 data B overflow!")
176 .text_data_l2 L2_START : AT(__data_b_l1_lma + __data_b_l1_len)
190 *(.data_l2.cacheline_aligned)
198 __l2_lma = LOADADDR(.text_data_l2);
199 __l2_len = SIZEOF(.text_data_l2);
200 ASSERT (__l2_len <= L2_LENGTH, "L2 overflow!")
202 /* Force trailing alignment of our init section so that when we
203 * free our init memory, we don't leave behind a partial page.
205 . = __l2_lma + __l2_len;
206 . = ALIGN(PAGE_SIZE);