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 May 03 11:35:27 MYT 2016 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 ONCHIP_FLASH_0_DATA_REGION_BASE 0x20 69 #define ONCHIP_FLASH_0_DATA_REGION_SPAN 753632 70 #define ONCHIP_MEMORY2_0_BEFORE_EXCEPTION_REGION_BASE 0x400000 71 #define ONCHIP_MEMORY2_0_BEFORE_EXCEPTION_REGION_SPAN 32 72 #define ONCHIP_MEMORY2_0_REGION_BASE 0x400020 73 #define ONCHIP_MEMORY2_0_REGION_SPAN 262112 74 #define RESET_REGION_BASE 0x0 75 #define RESET_REGION_SPAN 32 76 77 78 /* 79 * Devices associated with code sections 80 * 81 */ 82 83 #define ALT_EXCEPTIONS_DEVICE ONCHIP_MEMORY2_0 84 #define ALT_RESET_DEVICE ONCHIP_FLASH_0_DATA 85 #define ALT_RODATA_DEVICE ONCHIP_MEMORY2_0 86 #define ALT_RWDATA_DEVICE ONCHIP_MEMORY2_0 87 #define ALT_TEXT_DEVICE ONCHIP_FLASH_0_DATA 88 89 90 /* 91 * Initialization code at the reset address is allowed (e.g. no external bootloader). 92 * 93 */ 94 95 #define ALT_ALLOW_CODE_AT_RESET 96 97 98 /* 99 * The alt_load() facility is called from crt0 to copy sections into RAM. 100 * 101 */ 102 103 #define ALT_LOAD_COPY_EXCEPTIONS 104 #define ALT_LOAD_COPY_RODATA 105 #define ALT_LOAD_COPY_RWDATA 106 107 #endif /* __LINKER_H_ */ 108