From 8b4949381c9edea54547624827acf0d562ef5b76 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 6 Mar 2022 15:13:31 +0000 Subject: x1000: add TCSM section to linker script This is intended for debugging OF kernel boot problems and has to be enabled manually at compile time to make it usable. Change-Id: Ie5ce9f0a7639be0acf5e3879cfc3a7b8b89caa5c --- firmware/target/mips/ingenic_x1000/app.lds | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'firmware/target/mips/ingenic_x1000/app.lds') diff --git a/firmware/target/mips/ingenic_x1000/app.lds b/firmware/target/mips/ingenic_x1000/app.lds index 55a43af10a..2943329ba7 100644 --- a/firmware/target/mips/ingenic_x1000/app.lds +++ b/firmware/target/mips/ingenic_x1000/app.lds @@ -23,6 +23,7 @@ MEMORY { IRAM : ORIGIN = X1000_IRAM_BASE, LENGTH = X1000_IRAM_SIZE DRAM : ORIGIN = X1000_DRAM_BASE, LENGTH = X1000_DRAM_SIZE + TCSM : ORIGIN = X1000_TCSM_BASE, LENGTH = X1000_TCSM_SIZE } SECTIONS @@ -68,6 +69,14 @@ SECTIONS } > IRAM _iramcopy = LOADADDR(.iram); + .tcsm X1000_TCSM_BASE: AT (_bssbegin + SIZEOF(.iram)) + { + _tcsmstart = .; + KEEP(*(.tcsm*)); + _tcsmend = .; + } > TCSM + _tcsmcopy = LOADADDR(.tcsm); + . = ALIGN(4); .stack (NOLOAD) : { -- cgit v1.2.3