1// Memory map file to generate linker scripts for programs to run on 2// most targets (that have the OCD option); allows I/O through the host 3// debugger when being debugged using GDB (via the Xtensa OCD daemon). 4 5// Customer ID=7187; Build=0xac17d; Copyright (c) 2006-2015 Cadence Design Systems, Inc. 6// 7// Permission is hereby granted, free of charge, to any person obtaining 8// a copy of this software and associated documentation files (the 9// "Software"), to deal in the Software without restriction, including 10// without limitation the rights to use, copy, modify, merge, publish, 11// distribute, sublicense, and/or sell copies of the Software, and to 12// permit persons to whom the Software is furnished to do so, subject to 13// the following conditions: 14// 15// The above copyright notice and this permission notice shall be included 16// in all copies or substantial portions of the Software. 17// 18// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 21// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 22// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 23// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 24// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 26// Show extra XTBOARD memory map details. 27INCLUDE_XTBOARD_MEMORIES = try 28 29 30// A memory map is a sequence of memory descriptions and 31// optional parameter assignments. 32// 33// Each memory description has the following format: 34// BEGIN <name> 35// <addr> [,<paddr>] : <mem-type> : <mem-name> : <size> [,<psize>] 36// : [writable] [,executable] [,device] ; 37// <segment>* 38// END <name> 39// 40// where each <segment> description has the following format: 41// <seg-name> : F|C : <start-addr> - <end-addr> [ : STACK ] [ : HEAP ] 42// : <section-name>* ; 43// 44// Each parameter assignment is a keyword/value pair in the following format: 45// <keyword> = <value> (no spaces in <value>) 46// or 47// <keyword> = "<value>" (spaces allowed in <value>) 48// 49// The following primitives are also defined: 50// PLACE SECTIONS( <section-name>* ) { WITH_SECTION(<section-name>) 51// | IN_SEGMENT(<seg-name>) } 52// 53// NOLOAD <section-name1> [ <section-name2> ... ] 54// 55// Please refer to the Xtensa LSP Reference Manual for more details. 56// 57BEGIN dsp_core 580x20400000: sysram : dsp_core : 0x180000 : executable, writable ; 59 dsp_core : C : 0x20400000 - 0x2057ffff : STACK : HEAP : .rodata .literal .text .data __llvm_prf_names .bss; 60END dsp_core 61 62BEGIN dram0 630x24000000: dataRam : dram0 : 0x10000 : writable ; 64 dram0_0 : C : 0x24000000 - 0x2400ffff : .dram0.rodata .ResetVector.literal .Level2InterruptVector.literal .Level3InterruptVector.literal .DebugExceptionVector.literal .NMIExceptionVector.literal .KernelExceptionVector.literal .UserExceptionVector.literal .DoubleExceptionVector.literal .iram0.literal .dram0.data .dram0.bss; 65END dram0 66 67BEGIN iram0 680x24020000: instRam : iram0 : 0x10000 : executable, writable ; 69 iram0_0 : F : 0x24020000 - 0x240203ff : .ResetVector.text .ResetHandler.literal .ResetHandler.text; 70 iram0_1 : F : 0x24020400 - 0x2402057b : .WindowVectors.text; 71 iram0_2 : F : 0x2402057c - 0x2402059b : .Level2InterruptVector.text; 72 iram0_3 : F : 0x2402059c - 0x240205bb : .Level3InterruptVector.text; 73 iram0_4 : F : 0x240205bc - 0x240205db : .DebugExceptionVector.text; 74 iram0_5 : F : 0x240205dc - 0x240205fb : .NMIExceptionVector.text; 75 iram0_6 : F : 0x240205fc - 0x2402061b : .KernelExceptionVector.text; 76 iram0_7 : F : 0x2402061c - 0x2402063b : .UserExceptionVector.text; 77 iram0_8 : F : 0x2402063c - 0x2402ffff : .DoubleExceptionVector.text .iram0.text; 78END iram0 79 80BEGIN iocached 810x70000000: io : iocached : 0xda00000 : executable, writable ; 82END iocached 83 84BEGIN rambypass 850x80000000: sysram : rambypass : 0x10000000 : device, executable, writable ; 86END rambypass 87 88BEGIN iobypass 890x90000000: io : iobypass : 0xda00000 : device, executable, writable ; 90END iobypass 91 92