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...)
126 .text_l1 L1_CODE_START : AT(LOADADDR(.exit.data) + SIZEOF(.exit.data))
131 #ifdef CONFIG_SCHEDULE_L1
137 ASSERT (SIZEOF(.text_l1) <= L1_CODE_LENGTH, "L1 text overflow!")
139 .data_l1 L1_DATA_A_START : AT(LOADADDR(.text_l1) + SIZEOF(.text_l1))
147 *(.data_l1.cacheline_aligned)
155 ASSERT (SIZEOF(.data_l1) <= L1_DATA_A_LENGTH, "L1 data A overflow!")
157 .data_b_l1 L1_DATA_B_START : AT(LOADADDR(.data_l1) + SIZEOF(.data_l1))
170 ASSERT (SIZEOF(.data_b_l1) <= L1_DATA_B_LENGTH, "L1 data B overflow!")
172 __l2_lma_start = LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1);
174 .text_data_l2 L2_START : AT(LOADADDR(.data_b_l1) + SIZEOF(.data_b_l1))
188 *(.data_l2.cacheline_aligned)
196 ASSERT (SIZEOF(.text_data_l2) <= L2_LENGTH, "L2 overflow!")
198 /* Force trailing alignment of our init section so that when we
199 * free our init memory, we don't leave behind a partial page.
201 . = LOADADDR(.text_data_l2) + SIZEOF(.text_data_l2);
202 . = ALIGN(PAGE_SIZE);