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;
28 INIT_TEXT_SECTION(PAGE_SIZE)
29 INIT_DATA_SECTION(PAGE_SIZE)
30 PERCPU_SECTION(L1_CACHE_BYTES)
34 .text : AT(ADDR(.text) - LOAD_OFFSET) {
48 /* __init_begin __init_end must be page aligned for free_initmem */
54 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
57 #ifdef CONFIG_HAVE_TCM
63 .text_data_tcm FIXADDR_TCM : AT(__tcm_start)
69 #ifndef CONFIG_HAVE_DTCM
76 . = ADDR(.tcm_start) + SIZEOF(.tcm_start) + SIZEOF(.text_data_tcm);
78 #ifdef CONFIG_HAVE_DTCM
79 #define ITCM_SIZE CONFIG_ITCM_NR_PAGES * PAGE_SIZE
85 .data_tcm FIXADDR_TCM + ITCM_SIZE : AT(__dtcm_start)
94 . = ADDR(.dtcm_start) + SIZEOF(.data_tcm);
96 .tcm_end : AT(ADDR(.dtcm_start) + SIZEOF(.data_tcm)) {
98 .tcm_end : AT(ADDR(.tcm_start) + SIZEOF(.text_data_tcm)) {
100 . = ALIGN(PAGE_SIZE);
105 EXCEPTION_TABLE(L1_CACHE_BYTES)
106 BSS_SECTION(L1_CACHE_BYTES, PAGE_SIZE, L1_CACHE_BYTES)