| 1 |
2 |
alfik |
/*
|
| 2 |
|
|
* linker.h - Linker script mapping information
|
| 3 |
|
|
*
|
| 4 |
|
|
* Machine generated for CPU 'nios2_qsys_0' in SOPC Builder design 'soc'
|
| 5 |
|
|
* SOPC Builder design path: ../../soc.sopcinfo
|
| 6 |
|
|
*
|
| 7 |
|
|
* Generated: Sun Aug 18 12:33:10 CEST 2013
|
| 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_MEMORY2_0_REGION_BASE 0x8020
|
| 69 |
|
|
#define ONCHIP_MEMORY2_0_REGION_SPAN 32736
|
| 70 |
|
|
#define RESET_REGION_BASE 0x8000
|
| 71 |
|
|
#define RESET_REGION_SPAN 32
|
| 72 |
|
|
|
| 73 |
|
|
|
| 74 |
|
|
/*
|
| 75 |
|
|
* Devices associated with code sections
|
| 76 |
|
|
*
|
| 77 |
|
|
*/
|
| 78 |
|
|
|
| 79 |
|
|
#define ALT_EXCEPTIONS_DEVICE ONCHIP_MEMORY2_0
|
| 80 |
|
|
#define ALT_RESET_DEVICE ONCHIP_MEMORY2_0
|
| 81 |
|
|
#define ALT_RODATA_DEVICE ONCHIP_MEMORY2_0
|
| 82 |
|
|
#define ALT_RWDATA_DEVICE ONCHIP_MEMORY2_0
|
| 83 |
|
|
#define ALT_TEXT_DEVICE ONCHIP_MEMORY2_0
|
| 84 |
|
|
|
| 85 |
|
|
|
| 86 |
|
|
/*
|
| 87 |
|
|
* Initialization code at the reset address is allowed (e.g. no external bootloader).
|
| 88 |
|
|
*
|
| 89 |
|
|
*/
|
| 90 |
|
|
|
| 91 |
|
|
#define ALT_ALLOW_CODE_AT_RESET
|
| 92 |
|
|
|
| 93 |
|
|
#endif /* __LINKER_H_ */
|