Back to home page

LXR

 
 

    


Warning, /spec/build/bsps/aarch64/xilinx-zynqmp/linkcmds_ilp32.yml is written in an unsupported language. File is not indexed.

0001 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
0002 build-type: config-file
0003 content: |
0004   /* SPDX-License-Identifier: BSD-2-Clause */
0005 
0006   /*
0007    * Copyright (C) 2020 On-Line Applications Research Corporation (OAR)
0008    * Written by Kinsey Moore <kinsey.moore@oarcorp.com>
0009    *
0010    * Redistribution and use in source and binary forms, with or without
0011    * modification, are permitted provided that the following conditions
0012    * are met:
0013    * 1. Redistributions of source code must retain the above copyright
0014    *    notice, this list of conditions and the following disclaimer.
0015    * 2. Redistributions in binary form must reproduce the above copyright
0016    *    notice, this list of conditions and the following disclaimer in the
0017    *    documentation and/or other materials provided with the distribution.
0018    *
0019    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0020    * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0021    * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0022    * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0023    * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0024    * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0025    * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0026    * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0027    * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0028    * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0029    * POSSIBILITY OF SUCH DAMAGE.
0030    */
0031 
0032   DDRMC_REGION_0_BASE = 0x00000000000;
0033   DDRMC_REGION_0_LENGTH = 0x00080000000;
0034 
0035   MEMORY {
0036     RAM       : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_LOAD_OFFSET}, LENGTH = ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - ${BSP_XILINX_ZYNQMP_LOAD_OFFSET} - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES})
0037     NOCACHE   : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}) - ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH}, LENGTH = ${BSP_XILINX_ZYNQMP_NOCACHE_LENGTH}
0038     RAM_MMU   : ORIGIN = ${BSP_XILINX_ZYNQMP_RAM_BASE} + ${BSP_XILINX_ZYNQMP_RAM_LENGTH} - (0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}), LENGTH = 0x1000 * ${AARCH64_MMU_TRANSLATION_TABLE_PAGES}
0039   }
0040 
0041   REGION_ALIAS ("REGION_START",          RAM);
0042   REGION_ALIAS ("REGION_VECTOR",         RAM);
0043   REGION_ALIAS ("REGION_TEXT",           RAM);
0044   REGION_ALIAS ("REGION_TEXT_LOAD",      RAM);
0045   REGION_ALIAS ("REGION_RODATA",         RAM);
0046   REGION_ALIAS ("REGION_RODATA_LOAD",    RAM);
0047   REGION_ALIAS ("REGION_DATA",           RAM);
0048   REGION_ALIAS ("REGION_DATA_LOAD",      RAM);
0049   REGION_ALIAS ("REGION_FAST_TEXT",      RAM);
0050   REGION_ALIAS ("REGION_FAST_TEXT_LOAD", RAM);
0051   REGION_ALIAS ("REGION_FAST_DATA",      RAM);
0052   REGION_ALIAS ("REGION_FAST_DATA_LOAD", RAM);
0053   REGION_ALIAS ("REGION_BSS",            RAM);
0054   REGION_ALIAS ("REGION_WORK",           RAM);
0055   REGION_ALIAS ("REGION_STACK",          RAM);
0056   REGION_ALIAS ("REGION_NOCACHE",        NOCACHE);
0057   REGION_ALIAS ("REGION_NOCACHE_LOAD",   NOCACHE);
0058 
0059   bsp_stack_exception_size = DEFINED (bsp_stack_exception_size) ? bsp_stack_exception_size : 1024;
0060 
0061   bsp_section_rwbarrier_align = DEFINED (bsp_section_rwbarrier_align) ? bsp_section_rwbarrier_align : 1M;
0062 
0063   bsp_vector_table_in_start_section = 1;
0064 
0065   bsp_r0_ram_base = DDRMC_REGION_0_BASE;
0066   bsp_r0_ram_end = ORIGIN (RAM) + LENGTH (RAM);
0067   bsp_r1_ram_base = 0;
0068   bsp_r1_ram_end = 0;
0069 
0070   bsp_translation_table_base = ORIGIN (RAM_MMU);
0071   bsp_translation_table_end = ORIGIN (RAM_MMU) + LENGTH (RAM_MMU);
0072 
0073   OUTPUT_FORMAT ("elf32-littleaarch64")
0074   OUTPUT_ARCH (aarch64:ilp32)
0075 
0076   INCLUDE linkcmds.base
0077 copyrights:
0078 - Copyright (C) 2020 On-Line Applications Research (OAR)
0079 enabled-by: true
0080 install-path: ${BSP_LIBDIR}
0081 links: []
0082 target: linkcmds
0083 type: build