1// Memory map file to generate linker scripts for programs without board I/O. 2 3// Customer ID=7187; Build=0xac168; Copyright (c) 2004-2015 Cadence Design Systems, Inc. 4// 5// Permission is hereby granted, free of charge, to any person obtaining 6// a copy of this software and associated documentation files (the 7// "Software"), to deal in the Software without restriction, including 8// without limitation the rights to use, copy, modify, merge, publish, 9// distribute, sublicense, and/or sell copies of the Software, and to 10// permit persons to whom the Software is furnished to do so, subject to 11// the following conditions: 12// 13// The above copyright notice and this permission notice shall be included 14// in all copies or substantial portions of the Software. 15// 16// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 24 25// A memory map is a sequence of memory descriptions and 26// optional parameter assignments. 27// 28// Each memory description has the following format: 29// BEGIN <name> 30// <addr> [,<paddr>] : <mem-type> : <mem-name> : <size> [,<psize>] 31// : [writable] [,executable] [,device] ; 32// <segment>* 33// END <name> 34// 35// where each <segment> description has the following format: 36// <seg-name> : F|C : <start-addr> - <end-addr> [ : STACK ] [ : HEAP ] 37// : <section-name>* ; 38// 39// Each parameter assignment is a keyword/value pair in the following format: 40// <keyword> = <value> (no spaces in <value>) 41// or 42// <keyword> = "<value>" (spaces allowed in <value>) 43// 44// The following primitives are also defined: 45// PLACE SECTIONS( <section-name>* ) { WITH_SECTION(<section-name>) 46// | IN_SEGMENT(<seg-name>) } 47// 48// NOLOAD <section-name1> [ <section-name2> ... ] 49// 50// Please refer to the Xtensa LSP Reference Manual for more details. 51// 52BEGIN iram0 530x500000: instRam : iram0 : 0x100000 : executable, writable ; 54 iram0_0 : C : 0x500000 - 0x57ffff : .iram0.literal .iram0.text; 55 iram0_1 : F : 0x580000 - 0x5802df : .ResetVector.text .ResetHandler.literal .ResetHandler.text; 56 iram0_2 : C : 0x5802e0 - 0x5803ff : ; 57 iram0_3 : F : 0x580400 - 0x580577 : .WindowVectors.text; 58 iram0_4 : C : 0x580578 - 0x58057b : .Level2InterruptVector.literal; 59 iram0_5 : F : 0x58057c - 0x580597 : .Level2InterruptVector.text; 60 iram0_6 : C : 0x580598 - 0x58059b : .Level3InterruptVector.literal; 61 iram0_7 : F : 0x58059c - 0x5805b7 : .Level3InterruptVector.text; 62 iram0_8 : C : 0x5805b8 - 0x5805bb : .DebugExceptionVector.literal; 63 iram0_9 : F : 0x5805bc - 0x5805d7 : .DebugExceptionVector.text; 64 iram0_10 : C : 0x5805d8 - 0x5805db : .NMIExceptionVector.literal; 65 iram0_11 : F : 0x5805dc - 0x5805f7 : .NMIExceptionVector.text; 66 iram0_12 : C : 0x5805f8 - 0x5805fb : .KernelExceptionVector.literal; 67 iram0_13 : F : 0x5805fc - 0x580617 : .KernelExceptionVector.text; 68 iram0_14 : C : 0x580618 - 0x58061b : .UserExceptionVector.literal; 69 iram0_15 : F : 0x58061c - 0x580637 : .UserExceptionVector.text; 70 iram0_16 : C : 0x580638 - 0x58063b : .DoubleExceptionVector.literal; 71 iram0_17 : F : 0x58063c - 0x580657 : .DoubleExceptionVector.text; 72 iram0_18 : C : 0x580658 - 0x5fffff : ; 73END iram0 74 75BEGIN iram1 760x600000: instRam : iram1 : 0x200000 : executable, writable ; 77 iram1_0 : C : 0x600000 - 0x7fffff : .iram1.literal .iram1.text; 78END iram1 79 80BEGIN sram 810x20000000: sysram : sram : 0x500000 : executable, writable ; 82 sram0 : C : 0x20000000 - 0x204fffff : STACK : HEAP : .sram.rodata .clib.rodata .rtos.rodata .rodata .sram.literal .literal .rtos.literal .clib.literal .sram.text .text .clib.text .rtos.text .clib.data .clib.percpu.data .rtos.percpu.data .rtos.data .sram.data .data __llvm_prf_names __llvm_covmap .note.gnu.build-id .clib.bss .clib.percpu.bss .rtos.percpu.bss .rtos.bss .sram.bss .bss; 83END sram 84 85BEGIN dram0 860x20500000: dataRam : dram0 : 0x100000 : writable ; 87 dram0_0 : C : 0x20500000 - 0x205fffff : .dram0.rodata .dram0.data .dram0.bss; 88END dram0 89 90BEGIN dram1 910x20600000: dataRam : dram1 : 0x200000 : writable ; 92 dram1_0 : C : 0x20600000 - 0x207fffff : .dram1.rodata .dram1.data .dram1.bss; 93END dram1 94 95