1 /* SPDX-License-Identifier: GPL-2.0 */
3 #include <asm/vmlinux.lds.h>
5 #include <asm/memory.h>
13 jiffies = jiffies_64 + 4;
23 . = PAGE_OFFSET + PHYS_OFFSET_OFFSET;
29 .text : AT(ADDR(.text) - LOAD_OFFSET) {
45 /* __init_begin __init_end must be page aligned for free_initmem */
48 INIT_TEXT_SECTION(PAGE_SIZE)
49 INIT_DATA_SECTION(PAGE_SIZE)
50 PERCPU_SECTION(L1_CACHE_BYTES)
56 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
59 #ifdef CONFIG_HAVE_TCM
65 .text_data_tcm FIXADDR_TCM : AT(__tcm_start)
71 #ifndef CONFIG_HAVE_DTCM
78 . = ADDR(.tcm_start) + SIZEOF(.tcm_start) + SIZEOF(.text_data_tcm);
80 #ifdef CONFIG_HAVE_DTCM
81 #define ITCM_SIZE CONFIG_ITCM_NR_PAGES * PAGE_SIZE
87 .data_tcm FIXADDR_TCM + ITCM_SIZE : AT(__dtcm_start)
96 . = ADDR(.dtcm_start) + SIZEOF(.data_tcm);
98 .tcm_end : AT(ADDR(.dtcm_start) + SIZEOF(.data_tcm)) {
100 .tcm_end : AT(ADDR(.tcm_start) + SIZEOF(.text_data_tcm)) {
102 . = ALIGN(PAGE_SIZE);
107 EXCEPTION_TABLE(L1_CACHE_BYTES)
108 BSS_SECTION(L1_CACHE_BYTES, PAGE_SIZE, L1_CACHE_BYTES)