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) {
44 /* __init_begin __init_end must be page aligned for free_initmem */
47 INIT_TEXT_SECTION(PAGE_SIZE)
48 INIT_DATA_SECTION(PAGE_SIZE)
49 PERCPU_SECTION(L1_CACHE_BYTES)
55 RW_DATA(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
58 #ifdef CONFIG_HAVE_TCM
64 .text_data_tcm FIXADDR_TCM : AT(__tcm_start)
70 #ifndef CONFIG_HAVE_DTCM
77 . = ADDR(.tcm_start) + SIZEOF(.tcm_start) + SIZEOF(.text_data_tcm);
79 #ifdef CONFIG_HAVE_DTCM
80 #define ITCM_SIZE CONFIG_ITCM_NR_PAGES * PAGE_SIZE
86 .data_tcm FIXADDR_TCM + ITCM_SIZE : AT(__dtcm_start)
95 . = ADDR(.dtcm_start) + SIZEOF(.data_tcm);
97 .tcm_end : AT(ADDR(.dtcm_start) + SIZEOF(.data_tcm)) {
99 .tcm_end : AT(ADDR(.tcm_start) + SIZEOF(.text_data_tcm)) {
101 . = ALIGN(PAGE_SIZE);
106 EXCEPTION_TABLE(L1_CACHE_BYTES)
107 BSS_SECTION(L1_CACHE_BYTES, PAGE_SIZE, L1_CACHE_BYTES)