1 /* 2 * linker.h - Linker script mapping information 3 * 4 * Machine generated for CPU 'nios2_gen2_0' in SOPC Builder design 'ghrd_10m50da' 5 * SOPC Builder design path: ../../ghrd_10m50da.sopcinfo 6 * 7 * Generated: Tue Dec 05 14:42:02 SGT 2017 8 */ 9 10 /* 11 * DO NOT MODIFY THIS FILE 12 * 13 * Changing this file will have subtle consequences 14 * which will almost certainly lead to a nonfunctioning 15 * system. If you do modify this file, be aware that your 16 * changes will be overwritten and lost when this file 17 * is generated again. 18 * 19 * DO NOT MODIFY THIS FILE 20 */ 21 22 /* 23 * License Agreement 24 * 25 * Copyright (c) 2008 26 * Altera Corporation, San Jose, California, USA. 27 * All rights reserved. 28 * 29 * Permission is hereby granted, free of charge, to any person obtaining a 30 * copy of this software and associated documentation files (the "Software"), 31 * to deal in the Software without restriction, including without limitation 32 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 33 * and/or sell copies of the Software, and to permit persons to whom the 34 * Software is furnished to do so, subject to the following conditions: 35 * 36 * The above copyright notice and this permission notice shall be included in 37 * all copies or substantial portions of the Software. 38 * 39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 40 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 41 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 42 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 43 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 44 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 45 * DEALINGS IN THE SOFTWARE. 46 * 47 * This agreement shall be governed in all respects by the laws of the State 48 * of California and by the laws of the United States of America. 49 */ 50 51 #ifndef __LINKER_H_ 52 #define __LINKER_H_ 53 54 55 /* 56 * BSP controls alt_load() behavior in crt0. 57 * 58 */ 59 60 #define ALT_LOAD_EXPLICITLY_CONTROLLED 61 62 63 /* 64 * Base address and span (size in bytes) of each linker region 65 * 66 */ 67 68 #define EXT_FLASH_AVL_MEM_REGION_BASE 0x8000000 69 #define EXT_FLASH_AVL_MEM_REGION_SPAN 67108864 70 #define ONCHIP_FLASH_0_DATA_REGION_BASE 0x20 71 #define ONCHIP_FLASH_0_DATA_REGION_SPAN 753632 72 #define ONCHIP_MEMORY2_0_BEFORE_EXCEPTION_REGION_BASE 0x400000 73 #define ONCHIP_MEMORY2_0_BEFORE_EXCEPTION_REGION_SPAN 32 74 #define ONCHIP_MEMORY2_0_REGION_BASE 0x400020 75 #define ONCHIP_MEMORY2_0_REGION_SPAN 131040 76 #define RESET_REGION_BASE 0x0 77 #define RESET_REGION_SPAN 32 78 79 80 /* 81 * Devices associated with code sections 82 * 83 */ 84 85 #define ALT_EXCEPTIONS_DEVICE ONCHIP_MEMORY2_0 86 #define ALT_RESET_DEVICE ONCHIP_FLASH_0_DATA 87 #define ALT_RODATA_DEVICE ONCHIP_MEMORY2_0 88 #define ALT_RWDATA_DEVICE ONCHIP_MEMORY2_0 89 #define ALT_TEXT_DEVICE ONCHIP_FLASH_0_DATA 90 91 92 /* 93 * Initialization code at the reset address is allowed (e.g. no external bootloader). 94 * 95 */ 96 97 #define ALT_ALLOW_CODE_AT_RESET 98 99 100 /* 101 * The alt_load() facility is called from crt0 to copy sections into RAM. 102 * 103 */ 104 105 #define ALT_LOAD_COPY_EXCEPTIONS 106 #define ALT_LOAD_COPY_RODATA 107 #define ALT_LOAD_COPY_RWDATA 108 109 #endif /* __LINKER_H_ */ 110