linker.h 2.7 KB

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