xtensa: remove legacy arch implementation
We re-wrote the xtensa arch code, but never got around to purging the old implementation. Removed those boards which hadn't been moved to the new arch code. These were all xt-sim simulator targets and not real hardware. Fixes: #18138 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
f15648ee9d
commit
6fd6b7e50a
67 changed files with 5 additions and 8943 deletions
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_D_108MINI
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "D_108mini"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 7
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_D_108MINI
|
||||
bool "D_108mini core"
|
|
@ -1,611 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION sram0_seg :sram0_phdr
|
||||
#define ROMABLE_REGION srom1_seg :srom1_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dram1_0_seg : org = 0x3FFC0000, len = 0x20000
|
||||
dram0_0_seg : org = 0x3FFE0000, len = 0x20000
|
||||
iram0_0_seg : org = 0x40000000, len = 0x178
|
||||
iram0_1_seg : org = 0x40000178, len = 0x8
|
||||
iram0_2_seg : org = 0x40000180, len = 0x38
|
||||
iram0_3_seg : org = 0x400001B8, len = 0x8
|
||||
iram0_4_seg : org = 0x400001C0, len = 0x38
|
||||
iram0_5_seg : org = 0x400001F8, len = 0x8
|
||||
iram0_6_seg : org = 0x40000200, len = 0x38
|
||||
iram0_7_seg : org = 0x40000238, len = 0x8
|
||||
iram0_8_seg : org = 0x40000240, len = 0x38
|
||||
iram0_9_seg : org = 0x40000278, len = 0x8
|
||||
iram0_10_seg : org = 0x40000280, len = 0x38
|
||||
iram0_11_seg : org = 0x400002B8, len = 0x8
|
||||
iram0_12_seg : org = 0x400002C0, len = 0x38
|
||||
iram0_13_seg : org = 0x400002F8, len = 0x8
|
||||
iram0_14_seg : org = 0x40000300, len = 0x38
|
||||
iram0_15_seg : org = 0x40000338, len = 0x8
|
||||
iram0_16_seg : org = 0x40000340, len = 0x38
|
||||
iram0_17_seg : org = 0x40000378, len = 0x48
|
||||
iram0_18_seg : org = 0x400003C0, len = 0x40
|
||||
iram0_19_seg : org = 0x40000400, len = 0x1FC00
|
||||
srom0_seg : org = 0x50000000, len = 0x300
|
||||
srom1_seg : org = 0x50000300, len = 0xFFFD00
|
||||
sram0_seg : org = 0x60000000, len = 0x4000000
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x3ffbe000, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
dram1_0_phdr PT_LOAD;
|
||||
dram1_0_bss_phdr PT_LOAD;
|
||||
dram0_0_phdr PT_LOAD;
|
||||
dram0_0_bss_phdr PT_LOAD;
|
||||
iram0_0_phdr PT_LOAD;
|
||||
iram0_1_phdr PT_LOAD;
|
||||
iram0_2_phdr PT_LOAD;
|
||||
iram0_3_phdr PT_LOAD;
|
||||
iram0_4_phdr PT_LOAD;
|
||||
iram0_5_phdr PT_LOAD;
|
||||
iram0_6_phdr PT_LOAD;
|
||||
iram0_7_phdr PT_LOAD;
|
||||
iram0_8_phdr PT_LOAD;
|
||||
iram0_9_phdr PT_LOAD;
|
||||
iram0_10_phdr PT_LOAD;
|
||||
iram0_11_phdr PT_LOAD;
|
||||
iram0_12_phdr PT_LOAD;
|
||||
iram0_13_phdr PT_LOAD;
|
||||
iram0_14_phdr PT_LOAD;
|
||||
iram0_15_phdr PT_LOAD;
|
||||
iram0_16_phdr PT_LOAD;
|
||||
iram0_17_phdr PT_LOAD;
|
||||
iram0_18_phdr PT_LOAD;
|
||||
iram0_19_phdr PT_LOAD;
|
||||
srom0_phdr PT_LOAD;
|
||||
srom1_phdr PT_LOAD;
|
||||
sram0_phdr PT_LOAD;
|
||||
sram0_bss_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_dram1_start = 0x3ffc0000;
|
||||
_memmap_mem_dram1_end = 0x3ffe0000;
|
||||
_memmap_mem_dram0_start = 0x3ffe0000;
|
||||
_memmap_mem_dram0_end = 0x40000000;
|
||||
_memmap_mem_iram0_start = 0x40000000;
|
||||
_memmap_mem_iram0_end = 0x40020000;
|
||||
_memmap_mem_srom_start = 0x50000000;
|
||||
_memmap_mem_srom_end = 0x51000000;
|
||||
_memmap_mem_sram_start = 0x60000000;
|
||||
_memmap_mem_sram_end = 0x64000000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_dram1_0_start = 0x3ffc0000;
|
||||
_memmap_seg_dram1_0_max = 0x3ffe0000;
|
||||
_memmap_seg_dram0_0_start = 0x3ffe0000;
|
||||
_memmap_seg_dram0_0_max = 0x40000000;
|
||||
_memmap_seg_iram0_0_start = 0x40000000;
|
||||
_memmap_seg_iram0_0_max = 0x40000178;
|
||||
_memmap_seg_iram0_1_start = 0x40000178;
|
||||
_memmap_seg_iram0_1_max = 0x40000180;
|
||||
_memmap_seg_iram0_2_start = 0x40000180;
|
||||
_memmap_seg_iram0_2_max = 0x400001b8;
|
||||
_memmap_seg_iram0_3_start = 0x400001b8;
|
||||
_memmap_seg_iram0_3_max = 0x400001c0;
|
||||
_memmap_seg_iram0_4_start = 0x400001c0;
|
||||
_memmap_seg_iram0_4_max = 0x400001f8;
|
||||
_memmap_seg_iram0_5_start = 0x400001f8;
|
||||
_memmap_seg_iram0_5_max = 0x40000200;
|
||||
_memmap_seg_iram0_6_start = 0x40000200;
|
||||
_memmap_seg_iram0_6_max = 0x40000238;
|
||||
_memmap_seg_iram0_7_start = 0x40000238;
|
||||
_memmap_seg_iram0_7_max = 0x40000240;
|
||||
_memmap_seg_iram0_8_start = 0x40000240;
|
||||
_memmap_seg_iram0_8_max = 0x40000278;
|
||||
_memmap_seg_iram0_9_start = 0x40000278;
|
||||
_memmap_seg_iram0_9_max = 0x40000280;
|
||||
_memmap_seg_iram0_10_start = 0x40000280;
|
||||
_memmap_seg_iram0_10_max = 0x400002b8;
|
||||
_memmap_seg_iram0_11_start = 0x400002b8;
|
||||
_memmap_seg_iram0_11_max = 0x400002c0;
|
||||
_memmap_seg_iram0_12_start = 0x400002c0;
|
||||
_memmap_seg_iram0_12_max = 0x400002f8;
|
||||
_memmap_seg_iram0_13_start = 0x400002f8;
|
||||
_memmap_seg_iram0_13_max = 0x40000300;
|
||||
_memmap_seg_iram0_14_start = 0x40000300;
|
||||
_memmap_seg_iram0_14_max = 0x40000338;
|
||||
_memmap_seg_iram0_15_start = 0x40000338;
|
||||
_memmap_seg_iram0_15_max = 0x40000340;
|
||||
_memmap_seg_iram0_16_start = 0x40000340;
|
||||
_memmap_seg_iram0_16_max = 0x40000378;
|
||||
_memmap_seg_iram0_17_start = 0x40000378;
|
||||
_memmap_seg_iram0_17_max = 0x400003c0;
|
||||
_memmap_seg_iram0_18_start = 0x400003c0;
|
||||
_memmap_seg_iram0_18_max = 0x40000400;
|
||||
_memmap_seg_iram0_19_start = 0x40000400;
|
||||
_memmap_seg_iram0_19_max = 0x40020000;
|
||||
_memmap_seg_srom0_start = 0x50000000;
|
||||
_memmap_seg_srom0_max = 0x50000300;
|
||||
_memmap_seg_srom1_start = 0x50000300;
|
||||
_memmap_seg_srom1_max = 0x51000000;
|
||||
_memmap_seg_sram0_start = 0x60000000;
|
||||
_memmap_seg_sram0_max = 0x64000000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_vecbase_reset = 0x40000000);
|
||||
PROVIDE(_memmap_reset_vector = 0x50000000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00001110;
|
||||
_memmap_cacheattr_wt_base = 0x00001110;
|
||||
_memmap_cacheattr_bp_base = 0x00002220;
|
||||
_memmap_cacheattr_unused_mask = 0xFFFF000F;
|
||||
_memmap_cacheattr_wb_trapnull = 0x2222111F;
|
||||
_memmap_cacheattr_wba_trapnull = 0x2222111F;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x2222111F;
|
||||
_memmap_cacheattr_wt_trapnull = 0x2222111F;
|
||||
_memmap_cacheattr_bp_trapnull = 0x2222222F;
|
||||
_memmap_cacheattr_wb_strict = 0xFFFF111F;
|
||||
_memmap_cacheattr_wt_strict = 0xFFFF111F;
|
||||
_memmap_cacheattr_bp_strict = 0xFFFF222F;
|
||||
_memmap_cacheattr_wb_allvalid = 0x22221112;
|
||||
_memmap_cacheattr_wt_allvalid = 0x22221112;
|
||||
_memmap_cacheattr_bp_allvalid = 0x22222222;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.dram1.rodata : ALIGN(4)
|
||||
{
|
||||
_dram1_rodata_start = ABSOLUTE(.);
|
||||
*(.dram1.rodata)
|
||||
_dram1_rodata_end = ABSOLUTE(.);
|
||||
} >dram1_0_seg :dram1_0_phdr
|
||||
|
||||
.dram1.literal : ALIGN(4)
|
||||
{
|
||||
_dram1_literal_start = ABSOLUTE(.);
|
||||
*(.dram1.literal)
|
||||
_dram1_literal_end = ABSOLUTE(.);
|
||||
} >dram1_0_seg :dram1_0_phdr
|
||||
|
||||
.dram1.data : ALIGN(4)
|
||||
{
|
||||
_dram1_data_start = ABSOLUTE(.);
|
||||
*(.dram1.data)
|
||||
_dram1_data_end = ABSOLUTE(.);
|
||||
} >dram1_0_seg :dram1_0_phdr
|
||||
|
||||
.dram1.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_dram1_bss_start = ABSOLUTE(.);
|
||||
*(.dram1.bss)
|
||||
. = ALIGN (8);
|
||||
_dram1_bss_end = ABSOLUTE(.);
|
||||
_memmap_seg_dram1_0_end = ALIGN(0x8);
|
||||
} >dram1_0_seg :dram1_0_bss_phdr
|
||||
|
||||
.dram0.rodata : ALIGN(4)
|
||||
{
|
||||
_dram0_rodata_start = ABSOLUTE(.);
|
||||
*(.dram0.rodata)
|
||||
_dram0_rodata_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.literal : ALIGN(4)
|
||||
{
|
||||
_dram0_literal_start = ABSOLUTE(.);
|
||||
*(.dram0.literal)
|
||||
_dram0_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.data : ALIGN(4)
|
||||
{
|
||||
_dram0_data_start = ABSOLUTE(.);
|
||||
*(.dram0.data)
|
||||
_dram0_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_dram0_bss_start = ABSOLUTE(.);
|
||||
*(.dram0.bss)
|
||||
. = ALIGN (8);
|
||||
_dram0_bss_end = ABSOLUTE(.);
|
||||
_memmap_seg_dram0_0_end = ALIGN(0x8);
|
||||
} >dram0_0_seg :dram0_0_bss_phdr
|
||||
|
||||
.WindowVectors.text : ALIGN(4)
|
||||
{
|
||||
_WindowVectors_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.WindowVectors.text))
|
||||
_WindowVectors_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_0_end = ALIGN(0x8);
|
||||
} >iram0_0_seg :iram0_0_phdr
|
||||
|
||||
.Level2InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level2InterruptVector.literal)
|
||||
_Level2InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_1_end = ALIGN(0x8);
|
||||
} >iram0_1_seg :iram0_1_phdr
|
||||
|
||||
.Level2InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level2InterruptVector.text))
|
||||
_Level2InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_2_end = ALIGN(0x8);
|
||||
} >iram0_2_seg :iram0_2_phdr
|
||||
|
||||
.Level3InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level3InterruptVector.literal)
|
||||
_Level3InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_3_end = ALIGN(0x8);
|
||||
} >iram0_3_seg :iram0_3_phdr
|
||||
|
||||
.Level3InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level3InterruptVector.text))
|
||||
_Level3InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_4_end = ALIGN(0x8);
|
||||
} >iram0_4_seg :iram0_4_phdr
|
||||
|
||||
.Level4InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level4InterruptVector.literal)
|
||||
_Level4InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_5_end = ALIGN(0x8);
|
||||
} >iram0_5_seg :iram0_5_phdr
|
||||
|
||||
.Level4InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level4InterruptVector.text))
|
||||
_Level4InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_6_end = ALIGN(0x8);
|
||||
} >iram0_6_seg :iram0_6_phdr
|
||||
|
||||
.Level5InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level5InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level5InterruptVector.literal)
|
||||
_Level5InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_7_end = ALIGN(0x8);
|
||||
} >iram0_7_seg :iram0_7_phdr
|
||||
|
||||
.Level5InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level5InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level5InterruptVector.text))
|
||||
_Level5InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_8_end = ALIGN(0x8);
|
||||
} >iram0_8_seg :iram0_8_phdr
|
||||
|
||||
.DebugExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DebugExceptionVector.literal)
|
||||
_DebugExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_9_end = ALIGN(0x8);
|
||||
} >iram0_9_seg :iram0_9_phdr
|
||||
|
||||
.DebugExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DebugExceptionVector.text))
|
||||
_DebugExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_10_end = ALIGN(0x8);
|
||||
} >iram0_10_seg :iram0_10_phdr
|
||||
|
||||
.NMIExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_NMIExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.NMIExceptionVector.literal)
|
||||
_NMIExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_11_end = ALIGN(0x8);
|
||||
} >iram0_11_seg :iram0_11_phdr
|
||||
|
||||
.NMIExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_NMIExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.NMIExceptionVector.text))
|
||||
_NMIExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_12_end = ALIGN(0x8);
|
||||
} >iram0_12_seg :iram0_12_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_13_end = ALIGN(0x8);
|
||||
} >iram0_13_seg :iram0_13_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_14_end = ALIGN(0x8);
|
||||
} >iram0_14_seg :iram0_14_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_15_end = ALIGN(0x8);
|
||||
} >iram0_15_seg :iram0_15_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_16_end = ALIGN(0x8);
|
||||
} >iram0_16_seg :iram0_16_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_17_end = ALIGN(0x8);
|
||||
} >iram0_17_seg :iram0_17_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_18_end = ALIGN(0x8);
|
||||
} >iram0_18_seg :iram0_18_phdr
|
||||
|
||||
.iram0.text : ALIGN(4)
|
||||
{
|
||||
_iram0_text_start = ABSOLUTE(.);
|
||||
*(.iram0.literal .iram.literal .iram.text.literal .iram0.text .iram.text)
|
||||
_iram0_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_19_end = ALIGN(0x8);
|
||||
} >iram0_19_seg :iram0_19_phdr
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom0_end = ALIGN(0x8);
|
||||
} >srom0_seg :srom0_phdr
|
||||
|
||||
.srom.rodata : ALIGN(4)
|
||||
{
|
||||
_srom_rodata_start = ABSOLUTE(.);
|
||||
*(.srom.rodata)
|
||||
_srom_rodata_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.srom.text : ALIGN(4)
|
||||
{
|
||||
_srom_text_start = ABSOLUTE(.);
|
||||
*(.srom.literal .srom.text)
|
||||
_srom_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom1_end = ALIGN(0x8);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.sram.rodata : ALIGN(4)
|
||||
{
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
_sram_rodata_start = ABSOLUTE(.);
|
||||
*(.sram.rodata)
|
||||
_sram_rodata_end = ABSOLUTE(.);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_dram1_bss_start)
|
||||
LONG(_dram1_bss_end)
|
||||
LONG(_dram0_bss_start)
|
||||
LONG(_dram0_bss_end)
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.sram.text : ALIGN(4)
|
||||
{
|
||||
_sram_text_start = ABSOLUTE(.);
|
||||
*(.sram.literal .sram.text)
|
||||
_sram_text_end = ABSOLUTE(.);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >sram0_seg :sram0_phdr
|
||||
_image_text_end = .;
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.sram.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_sram0_end = ALIGN(0x8);
|
||||
} >sram0_seg :sram0_bss_phdr
|
||||
__stack = 0x64000000;
|
||||
_heap_sentry = 0x64000000;
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_D_212GP
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "D_212GP"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 7
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_D_212GP
|
||||
bool "D_212GP core"
|
|
@ -1,617 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION sram19_seg :sram19_phdr
|
||||
#define ROMABLE_REGION srom1_seg :srom1_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dport0_0_seg : org = 0x3FFC0000, len = 0x20000
|
||||
dram0_0_seg : org = 0x3FFE0000, len = 0x20000
|
||||
iram0_0_seg : org = 0x40000000, len = 0x20000
|
||||
srom0_seg : org = 0x50000000, len = 0x300
|
||||
srom1_seg : org = 0x50000300, len = 0xFFFD00
|
||||
sram0_seg : org = 0x60000000, len = 0x178
|
||||
sram1_seg : org = 0x60000178, len = 0x8
|
||||
sram2_seg : org = 0x60000180, len = 0x38
|
||||
sram3_seg : org = 0x600001B8, len = 0x8
|
||||
sram4_seg : org = 0x600001C0, len = 0x38
|
||||
sram5_seg : org = 0x600001F8, len = 0x8
|
||||
sram6_seg : org = 0x60000200, len = 0x38
|
||||
sram7_seg : org = 0x60000238, len = 0x8
|
||||
sram8_seg : org = 0x60000240, len = 0x38
|
||||
sram9_seg : org = 0x60000278, len = 0x8
|
||||
sram10_seg : org = 0x60000280, len = 0x38
|
||||
sram11_seg : org = 0x600002B8, len = 0x8
|
||||
sram12_seg : org = 0x600002C0, len = 0x38
|
||||
sram13_seg : org = 0x600002F8, len = 0x8
|
||||
sram14_seg : org = 0x60000300, len = 0x38
|
||||
sram15_seg : org = 0x60000338, len = 0x8
|
||||
sram16_seg : org = 0x60000340, len = 0x38
|
||||
sram17_seg : org = 0x60000378, len = 0x48
|
||||
sram18_seg : org = 0x600003C0, len = 0x40
|
||||
sram19_seg : org = 0x60000400, len = 0x3FFFC00
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x3ffbe000, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
dport0_0_phdr PT_LOAD;
|
||||
dport0_0_bss_phdr PT_LOAD;
|
||||
dram0_0_phdr PT_LOAD;
|
||||
dram0_0_bss_phdr PT_LOAD;
|
||||
iram0_0_phdr PT_LOAD;
|
||||
srom0_phdr PT_LOAD;
|
||||
srom1_phdr PT_LOAD;
|
||||
sram0_phdr PT_LOAD;
|
||||
sram1_phdr PT_LOAD;
|
||||
sram2_phdr PT_LOAD;
|
||||
sram3_phdr PT_LOAD;
|
||||
sram4_phdr PT_LOAD;
|
||||
sram5_phdr PT_LOAD;
|
||||
sram6_phdr PT_LOAD;
|
||||
sram7_phdr PT_LOAD;
|
||||
sram8_phdr PT_LOAD;
|
||||
sram9_phdr PT_LOAD;
|
||||
sram10_phdr PT_LOAD;
|
||||
sram11_phdr PT_LOAD;
|
||||
sram12_phdr PT_LOAD;
|
||||
sram13_phdr PT_LOAD;
|
||||
sram14_phdr PT_LOAD;
|
||||
sram15_phdr PT_LOAD;
|
||||
sram16_phdr PT_LOAD;
|
||||
sram17_phdr PT_LOAD;
|
||||
sram18_phdr PT_LOAD;
|
||||
sram19_phdr PT_LOAD;
|
||||
sram19_bss_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_dport0_start = 0x3ffc0000;
|
||||
_memmap_mem_dport0_end = 0x3ffe0000;
|
||||
_memmap_mem_dram0_start = 0x3ffe0000;
|
||||
_memmap_mem_dram0_end = 0x40000000;
|
||||
_memmap_mem_iram0_start = 0x40000000;
|
||||
_memmap_mem_iram0_end = 0x40020000;
|
||||
_memmap_mem_srom_start = 0x50000000;
|
||||
_memmap_mem_srom_end = 0x51000000;
|
||||
_memmap_mem_sram_start = 0x60000000;
|
||||
_memmap_mem_sram_end = 0x64000000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_dport0_0_start = 0x3ffc0000;
|
||||
_memmap_seg_dport0_0_max = 0x3ffe0000;
|
||||
_memmap_seg_dram0_0_start = 0x3ffe0000;
|
||||
_memmap_seg_dram0_0_max = 0x40000000;
|
||||
_memmap_seg_iram0_0_start = 0x40000000;
|
||||
_memmap_seg_iram0_0_max = 0x40020000;
|
||||
_memmap_seg_srom0_start = 0x50000000;
|
||||
_memmap_seg_srom0_max = 0x50000300;
|
||||
_memmap_seg_srom1_start = 0x50000300;
|
||||
_memmap_seg_srom1_max = 0x51000000;
|
||||
_memmap_seg_sram0_start = 0x60000000;
|
||||
_memmap_seg_sram0_max = 0x60000178;
|
||||
_memmap_seg_sram1_start = 0x60000178;
|
||||
_memmap_seg_sram1_max = 0x60000180;
|
||||
_memmap_seg_sram2_start = 0x60000180;
|
||||
_memmap_seg_sram2_max = 0x600001b8;
|
||||
_memmap_seg_sram3_start = 0x600001b8;
|
||||
_memmap_seg_sram3_max = 0x600001c0;
|
||||
_memmap_seg_sram4_start = 0x600001c0;
|
||||
_memmap_seg_sram4_max = 0x600001f8;
|
||||
_memmap_seg_sram5_start = 0x600001f8;
|
||||
_memmap_seg_sram5_max = 0x60000200;
|
||||
_memmap_seg_sram6_start = 0x60000200;
|
||||
_memmap_seg_sram6_max = 0x60000238;
|
||||
_memmap_seg_sram7_start = 0x60000238;
|
||||
_memmap_seg_sram7_max = 0x60000240;
|
||||
_memmap_seg_sram8_start = 0x60000240;
|
||||
_memmap_seg_sram8_max = 0x60000278;
|
||||
_memmap_seg_sram9_start = 0x60000278;
|
||||
_memmap_seg_sram9_max = 0x60000280;
|
||||
_memmap_seg_sram10_start = 0x60000280;
|
||||
_memmap_seg_sram10_max = 0x600002b8;
|
||||
_memmap_seg_sram11_start = 0x600002b8;
|
||||
_memmap_seg_sram11_max = 0x600002c0;
|
||||
_memmap_seg_sram12_start = 0x600002c0;
|
||||
_memmap_seg_sram12_max = 0x600002f8;
|
||||
_memmap_seg_sram13_start = 0x600002f8;
|
||||
_memmap_seg_sram13_max = 0x60000300;
|
||||
_memmap_seg_sram14_start = 0x60000300;
|
||||
_memmap_seg_sram14_max = 0x60000338;
|
||||
_memmap_seg_sram15_start = 0x60000338;
|
||||
_memmap_seg_sram15_max = 0x60000340;
|
||||
_memmap_seg_sram16_start = 0x60000340;
|
||||
_memmap_seg_sram16_max = 0x60000378;
|
||||
_memmap_seg_sram17_start = 0x60000378;
|
||||
_memmap_seg_sram17_max = 0x600003c0;
|
||||
_memmap_seg_sram18_start = 0x600003c0;
|
||||
_memmap_seg_sram18_max = 0x60000400;
|
||||
_memmap_seg_sram19_start = 0x60000400;
|
||||
_memmap_seg_sram19_max = 0x64000000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_vecbase_reset = 0x60000000);
|
||||
PROVIDE(_memmap_reset_vector = 0x50000000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00004440;
|
||||
_memmap_cacheattr_wt_base = 0x00001110;
|
||||
_memmap_cacheattr_bp_base = 0x00002220;
|
||||
_memmap_cacheattr_unused_mask = 0xFFFF000F;
|
||||
_memmap_cacheattr_wb_trapnull = 0x2222444F;
|
||||
_memmap_cacheattr_wba_trapnull = 0x2222444F;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x2222555F;
|
||||
_memmap_cacheattr_wt_trapnull = 0x2222111F;
|
||||
_memmap_cacheattr_bp_trapnull = 0x2222222F;
|
||||
_memmap_cacheattr_wb_strict = 0xFFFF444F;
|
||||
_memmap_cacheattr_wt_strict = 0xFFFF111F;
|
||||
_memmap_cacheattr_bp_strict = 0xFFFF222F;
|
||||
_memmap_cacheattr_wb_allvalid = 0x22224442;
|
||||
_memmap_cacheattr_wt_allvalid = 0x22221112;
|
||||
_memmap_cacheattr_bp_allvalid = 0x22222222;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.dport0.rodata : ALIGN(4)
|
||||
{
|
||||
_dport0_rodata_start = ABSOLUTE(.);
|
||||
*(.dport0.rodata)
|
||||
*(.dport.rodata)
|
||||
_dport0_rodata_end = ABSOLUTE(.);
|
||||
} >dport0_0_seg :dport0_0_phdr
|
||||
|
||||
.dport0.literal : ALIGN(4)
|
||||
{
|
||||
_dport0_literal_start = ABSOLUTE(.);
|
||||
*(.dport0.literal)
|
||||
*(.dport.literal)
|
||||
_dport0_literal_end = ABSOLUTE(.);
|
||||
} >dport0_0_seg :dport0_0_phdr
|
||||
|
||||
.dport0.data : ALIGN(4)
|
||||
{
|
||||
_dport0_data_start = ABSOLUTE(.);
|
||||
*(.dport0.data)
|
||||
*(.dport.data)
|
||||
_dport0_data_end = ABSOLUTE(.);
|
||||
} >dport0_0_seg :dport0_0_phdr
|
||||
|
||||
.dport0.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_dport0_bss_start = ABSOLUTE(.);
|
||||
*(.dport0.bss)
|
||||
. = ALIGN (8);
|
||||
_dport0_bss_end = ABSOLUTE(.);
|
||||
_memmap_seg_dport0_0_end = ALIGN(0x8);
|
||||
} >dport0_0_seg :dport0_0_bss_phdr
|
||||
|
||||
.dram0.rodata : ALIGN(4)
|
||||
{
|
||||
_dram0_rodata_start = ABSOLUTE(.);
|
||||
*(.dram0.rodata)
|
||||
*(.dram.rodata)
|
||||
_dram0_rodata_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.literal : ALIGN(4)
|
||||
{
|
||||
_dram0_literal_start = ABSOLUTE(.);
|
||||
*(.dram0.literal)
|
||||
*(.dram.literal)
|
||||
_dram0_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.data : ALIGN(4)
|
||||
{
|
||||
_dram0_data_start = ABSOLUTE(.);
|
||||
*(.dram0.data)
|
||||
*(.dram.data)
|
||||
_dram0_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_dram0_bss_start = ABSOLUTE(.);
|
||||
*(.dram0.bss)
|
||||
. = ALIGN (8);
|
||||
_dram0_bss_end = ABSOLUTE(.);
|
||||
_memmap_seg_dram0_0_end = ALIGN(0x8);
|
||||
} >dram0_0_seg :dram0_0_bss_phdr
|
||||
|
||||
.iram0.text : ALIGN(4)
|
||||
{
|
||||
_iram0_text_start = ABSOLUTE(.);
|
||||
*(.iram0.literal .iram.literal .iram.text.literal .iram0.text .iram.text)
|
||||
_iram0_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_0_end = ALIGN(0x8);
|
||||
} >iram0_0_seg :iram0_0_phdr
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom0_end = ALIGN(0x8);
|
||||
} >srom0_seg :srom0_phdr
|
||||
|
||||
.srom.rodata : ALIGN(4)
|
||||
{
|
||||
_srom_rodata_start = ABSOLUTE(.);
|
||||
*(.srom.rodata)
|
||||
_srom_rodata_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.srom.text : ALIGN(4)
|
||||
{
|
||||
_srom_text_start = ABSOLUTE(.);
|
||||
*(.srom.literal .srom.text)
|
||||
_srom_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom1_end = ALIGN(0x8);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.WindowVectors.text : ALIGN(4)
|
||||
{
|
||||
_WindowVectors_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.WindowVectors.text))
|
||||
_WindowVectors_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram0_end = ALIGN(0x8);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.Level2InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level2InterruptVector.literal)
|
||||
_Level2InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram1_end = ALIGN(0x8);
|
||||
} >sram1_seg :sram1_phdr
|
||||
|
||||
.Level2InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level2InterruptVector.text))
|
||||
_Level2InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram2_end = ALIGN(0x8);
|
||||
} >sram2_seg :sram2_phdr
|
||||
|
||||
.Level3InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level3InterruptVector.literal)
|
||||
_Level3InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram3_end = ALIGN(0x8);
|
||||
} >sram3_seg :sram3_phdr
|
||||
|
||||
.Level3InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level3InterruptVector.text))
|
||||
_Level3InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram4_end = ALIGN(0x8);
|
||||
} >sram4_seg :sram4_phdr
|
||||
|
||||
.Level4InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level4InterruptVector.literal)
|
||||
_Level4InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram5_end = ALIGN(0x8);
|
||||
} >sram5_seg :sram5_phdr
|
||||
|
||||
.Level4InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level4InterruptVector.text))
|
||||
_Level4InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram6_end = ALIGN(0x8);
|
||||
} >sram6_seg :sram6_phdr
|
||||
|
||||
.Level5InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level5InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level5InterruptVector.literal)
|
||||
_Level5InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram7_end = ALIGN(0x8);
|
||||
} >sram7_seg :sram7_phdr
|
||||
|
||||
.Level5InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level5InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level5InterruptVector.text))
|
||||
_Level5InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram8_end = ALIGN(0x8);
|
||||
} >sram8_seg :sram8_phdr
|
||||
|
||||
.DebugExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DebugExceptionVector.literal)
|
||||
_DebugExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram9_end = ALIGN(0x8);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.DebugExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DebugExceptionVector.text))
|
||||
_DebugExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram10_end = ALIGN(0x8);
|
||||
} >sram10_seg :sram10_phdr
|
||||
|
||||
.NMIExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_NMIExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.NMIExceptionVector.literal)
|
||||
_NMIExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram11_end = ALIGN(0x8);
|
||||
} >sram11_seg :sram11_phdr
|
||||
|
||||
.NMIExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_NMIExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.NMIExceptionVector.text))
|
||||
_NMIExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram12_end = ALIGN(0x8);
|
||||
} >sram12_seg :sram12_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram13_end = ALIGN(0x8);
|
||||
} >sram13_seg :sram13_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram14_end = ALIGN(0x8);
|
||||
} >sram14_seg :sram14_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram15_end = ALIGN(0x8);
|
||||
} >sram15_seg :sram15_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram16_end = ALIGN(0x8);
|
||||
} >sram16_seg :sram16_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram17_end = ALIGN(0x8);
|
||||
} >sram17_seg :sram17_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram18_end = ALIGN(0x8);
|
||||
} >sram18_seg :sram18_phdr
|
||||
|
||||
.sram.rodata : ALIGN(4)
|
||||
{
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
_sram_rodata_start = ABSOLUTE(.);
|
||||
*(.sram.rodata)
|
||||
_sram_rodata_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_dport0_bss_start)
|
||||
LONG(_dport0_bss_end)
|
||||
LONG(_dram0_bss_start)
|
||||
LONG(_dram0_bss_end)
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
.sram.text : ALIGN(4)
|
||||
{
|
||||
_sram_text_start = ABSOLUTE(.);
|
||||
*(.sram.literal .sram.text)
|
||||
_sram_text_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >sram19_seg :sram19_phdr
|
||||
_image_text_end = .;
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.sram.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_sram19_end = ALIGN(0x8);
|
||||
} >sram19_seg :sram19_bss_phdr
|
||||
__stack = 0x64000000;
|
||||
_heap_sentry = 0x64000000;
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_D_233L
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "D_233L"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 7
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_D_233L
|
||||
bool "D_233L core"
|
|
@ -1,519 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION sram20_seg :sram20_phdr
|
||||
#define ROMABLE_REGION srom1_seg :srom1_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
sram1_seg : org = 0x00002000, len = 0x178
|
||||
sram2_seg : org = 0x00002178, len = 0x8
|
||||
sram3_seg : org = 0x00002180, len = 0x38
|
||||
sram4_seg : org = 0x000021B8, len = 0x8
|
||||
sram5_seg : org = 0x000021C0, len = 0x38
|
||||
sram6_seg : org = 0x000021F8, len = 0x8
|
||||
sram7_seg : org = 0x00002200, len = 0x38
|
||||
sram8_seg : org = 0x00002238, len = 0x8
|
||||
sram9_seg : org = 0x00002240, len = 0x38
|
||||
sram10_seg : org = 0x00002278, len = 0x8
|
||||
sram11_seg : org = 0x00002280, len = 0x38
|
||||
sram12_seg : org = 0x000022B8, len = 0x8
|
||||
sram13_seg : org = 0x000022C0, len = 0x38
|
||||
sram14_seg : org = 0x000022F8, len = 0x8
|
||||
sram15_seg : org = 0x00002300, len = 0x38
|
||||
sram16_seg : org = 0x00002338, len = 0x8
|
||||
sram17_seg : org = 0x00002340, len = 0x38
|
||||
sram18_seg : org = 0x00002378, len = 0x48
|
||||
sram19_seg : org = 0x000023C0, len = 0x140
|
||||
sram20_seg : org = 0x00002500, len = 0x3FFDB00
|
||||
srom0_seg : org = 0xFE000000, len = 0x300
|
||||
srom1_seg : org = 0xFE000300, len = 0xFFFD00
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x3ffdd50, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
sram0_phdr PT_LOAD;
|
||||
sram1_phdr PT_LOAD;
|
||||
sram2_phdr PT_LOAD;
|
||||
sram3_phdr PT_LOAD;
|
||||
sram4_phdr PT_LOAD;
|
||||
sram5_phdr PT_LOAD;
|
||||
sram6_phdr PT_LOAD;
|
||||
sram7_phdr PT_LOAD;
|
||||
sram8_phdr PT_LOAD;
|
||||
sram9_phdr PT_LOAD;
|
||||
sram10_phdr PT_LOAD;
|
||||
sram11_phdr PT_LOAD;
|
||||
sram12_phdr PT_LOAD;
|
||||
sram13_phdr PT_LOAD;
|
||||
sram14_phdr PT_LOAD;
|
||||
sram15_phdr PT_LOAD;
|
||||
sram16_phdr PT_LOAD;
|
||||
sram17_phdr PT_LOAD;
|
||||
sram18_phdr PT_LOAD;
|
||||
sram19_phdr PT_LOAD;
|
||||
sram20_phdr PT_LOAD;
|
||||
sram20_bss_phdr PT_LOAD;
|
||||
srom0_phdr PT_LOAD;
|
||||
srom1_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_sram_start = 0x4;
|
||||
_memmap_mem_sram_end = 0x4000000;
|
||||
_memmap_mem_srom_start = 0xfe000000;
|
||||
_memmap_mem_srom_end = 0xff000000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_sram1_start = 0x2000;
|
||||
_memmap_seg_sram1_max = 0x2178;
|
||||
_memmap_seg_sram2_start = 0x2178;
|
||||
_memmap_seg_sram2_max = 0x2180;
|
||||
_memmap_seg_sram3_start = 0x2180;
|
||||
_memmap_seg_sram3_max = 0x21b8;
|
||||
_memmap_seg_sram4_start = 0x21b8;
|
||||
_memmap_seg_sram4_max = 0x21c0;
|
||||
_memmap_seg_sram5_start = 0x21c0;
|
||||
_memmap_seg_sram5_max = 0x21f8;
|
||||
_memmap_seg_sram6_start = 0x21f8;
|
||||
_memmap_seg_sram6_max = 0x2200;
|
||||
_memmap_seg_sram7_start = 0x2200;
|
||||
_memmap_seg_sram7_max = 0x2238;
|
||||
_memmap_seg_sram8_start = 0x2238;
|
||||
_memmap_seg_sram8_max = 0x2240;
|
||||
_memmap_seg_sram9_start = 0x2240;
|
||||
_memmap_seg_sram9_max = 0x2278;
|
||||
_memmap_seg_sram10_start = 0x2278;
|
||||
_memmap_seg_sram10_max = 0x2280;
|
||||
_memmap_seg_sram11_start = 0x2280;
|
||||
_memmap_seg_sram11_max = 0x22b8;
|
||||
_memmap_seg_sram12_start = 0x22b8;
|
||||
_memmap_seg_sram12_max = 0x22c0;
|
||||
_memmap_seg_sram13_start = 0x22c0;
|
||||
_memmap_seg_sram13_max = 0x22f8;
|
||||
_memmap_seg_sram14_start = 0x22f8;
|
||||
_memmap_seg_sram14_max = 0x2300;
|
||||
_memmap_seg_sram15_start = 0x2300;
|
||||
_memmap_seg_sram15_max = 0x2338;
|
||||
_memmap_seg_sram16_start = 0x2338;
|
||||
_memmap_seg_sram16_max = 0x2340;
|
||||
_memmap_seg_sram17_start = 0x2340;
|
||||
_memmap_seg_sram17_max = 0x2378;
|
||||
_memmap_seg_sram18_start = 0x2378;
|
||||
_memmap_seg_sram18_max = 0x23c0;
|
||||
_memmap_seg_sram19_start = 0x23c0;
|
||||
_memmap_seg_sram19_max = 0x2500;
|
||||
_memmap_seg_sram20_start = 0x2500;
|
||||
_memmap_seg_sram20_max = 0x4000000;
|
||||
_memmap_seg_srom0_start = 0xfe000000;
|
||||
_memmap_seg_srom0_max = 0xfe000300;
|
||||
_memmap_seg_srom1_start = 0xfe000300;
|
||||
_memmap_seg_srom1_max = 0xff000000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_vecbase_reset = 0x2000);
|
||||
PROVIDE(_memmap_reset_vector = 0xfe000000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x70000007;
|
||||
_memmap_cacheattr_wt_base = 0xB000000B;
|
||||
_memmap_cacheattr_bp_base = 0x30000003;
|
||||
_memmap_cacheattr_unused_mask = 0x0FFFFFF0;
|
||||
_memmap_cacheattr_wb_trapnull = 0x73333337;
|
||||
_memmap_cacheattr_wba_trapnull = 0x73333337;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x73333337;
|
||||
_memmap_cacheattr_wt_trapnull = 0xB333333B;
|
||||
_memmap_cacheattr_bp_trapnull = 0x33333333;
|
||||
_memmap_cacheattr_wb_strict = 0x7CCCCCC7;
|
||||
_memmap_cacheattr_wt_strict = 0xBCCCCCCB;
|
||||
_memmap_cacheattr_bp_strict = 0x3CCCCCC3;
|
||||
_memmap_cacheattr_wb_allvalid = 0x73333337;
|
||||
_memmap_cacheattr_wt_allvalid = 0xB333333B;
|
||||
_memmap_cacheattr_bp_allvalid = 0x33333333;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.WindowVectors.text : ALIGN(4)
|
||||
{
|
||||
_WindowVectors_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.WindowVectors.text))
|
||||
_WindowVectors_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram1_end = ALIGN(0x8);
|
||||
} >sram1_seg :sram1_phdr
|
||||
|
||||
.Level2InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level2InterruptVector.literal)
|
||||
_Level2InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram2_end = ALIGN(0x8);
|
||||
} >sram2_seg :sram2_phdr
|
||||
|
||||
.Level2InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level2InterruptVector.text))
|
||||
_Level2InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram3_end = ALIGN(0x8);
|
||||
} >sram3_seg :sram3_phdr
|
||||
|
||||
.Level3InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level3InterruptVector.literal)
|
||||
_Level3InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram4_end = ALIGN(0x8);
|
||||
} >sram4_seg :sram4_phdr
|
||||
|
||||
.Level3InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level3InterruptVector.text))
|
||||
_Level3InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram5_end = ALIGN(0x8);
|
||||
} >sram5_seg :sram5_phdr
|
||||
|
||||
.Level4InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level4InterruptVector.literal)
|
||||
_Level4InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram6_end = ALIGN(0x8);
|
||||
} >sram6_seg :sram6_phdr
|
||||
|
||||
.Level4InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level4InterruptVector.text))
|
||||
_Level4InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram7_end = ALIGN(0x8);
|
||||
} >sram7_seg :sram7_phdr
|
||||
|
||||
.Level5InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level5InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level5InterruptVector.literal)
|
||||
_Level5InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram8_end = ALIGN(0x8);
|
||||
} >sram8_seg :sram8_phdr
|
||||
|
||||
.Level5InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level5InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level5InterruptVector.text))
|
||||
_Level5InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram9_end = ALIGN(0x8);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.DebugExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DebugExceptionVector.literal)
|
||||
_DebugExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram10_end = ALIGN(0x8);
|
||||
} >sram10_seg :sram10_phdr
|
||||
|
||||
.DebugExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DebugExceptionVector.text))
|
||||
_DebugExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram11_end = ALIGN(0x8);
|
||||
} >sram11_seg :sram11_phdr
|
||||
|
||||
.NMIExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_NMIExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.NMIExceptionVector.literal)
|
||||
_NMIExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram12_end = ALIGN(0x8);
|
||||
} >sram12_seg :sram12_phdr
|
||||
|
||||
.NMIExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_NMIExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.NMIExceptionVector.text))
|
||||
_NMIExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram13_end = ALIGN(0x8);
|
||||
} >sram13_seg :sram13_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram14_end = ALIGN(0x8);
|
||||
} >sram14_seg :sram14_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram15_end = ALIGN(0x8);
|
||||
} >sram15_seg :sram15_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram16_end = ALIGN(0x8);
|
||||
} >sram16_seg :sram16_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram17_end = ALIGN(0x8);
|
||||
} >sram17_seg :sram17_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram18_end = ALIGN(0x8);
|
||||
} >sram18_seg :sram18_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram19_end = ALIGN(0x8);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
.sram.rodata : ALIGN(4)
|
||||
{
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
_sram_rodata_start = ABSOLUTE(.);
|
||||
*(.sram.rodata)
|
||||
_sram_rodata_end = ABSOLUTE(.);
|
||||
} >sram20_seg :sram20_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >sram20_seg :sram20_phdr
|
||||
|
||||
.sram.text : ALIGN(4)
|
||||
{
|
||||
_sram_text_start = ABSOLUTE(.);
|
||||
*(.sram.literal .sram.text)
|
||||
_sram_text_end = ABSOLUTE(.);
|
||||
} >sram20_seg :sram20_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >sram20_seg :sram20_phdr
|
||||
_image_text_end = .;
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >sram20_seg :sram20_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >sram20_seg :sram20_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >sram20_seg :sram20_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.sram.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_sram20_end = ALIGN(0x8);
|
||||
} >sram20_seg :sram20_bss_phdr
|
||||
__stack = 0x4000000;
|
||||
_heap_sentry = 0x4000000;
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom0_end = ALIGN(0x8);
|
||||
} >srom0_seg :srom0_phdr
|
||||
|
||||
.srom.rodata : ALIGN(4)
|
||||
{
|
||||
_srom_rodata_start = ABSOLUTE(.);
|
||||
*(.srom.rodata)
|
||||
_srom_rodata_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.srom.text : ALIGN(4)
|
||||
{
|
||||
_srom_text_start = ABSOLUTE(.);
|
||||
*(.srom.literal .srom.text)
|
||||
_srom_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom1_end = ALIGN(0x8);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_XRC_D2PM_5SWIRQ
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "XRC_D2PM_5swIrq"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 22
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_XRC_D2PM_5SWIRQ
|
||||
bool "XRC_D2PM_5swIrq (XRC_D2PM core with 4 additional SW IRQs)"
|
|
@ -1,621 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION sram19_seg :sram19_phdr
|
||||
#define ROMABLE_REGION srom1_seg :srom1_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
srom0_seg : org = 0x40000000, len = 0x2E0
|
||||
srom1_seg : org = 0x400002E0, len = 0xFFFD20
|
||||
dram0_0_seg : org = 0x5FFA0000, len = 0x20000
|
||||
dram1_0_seg : org = 0x5FFC0000, len = 0x20000
|
||||
iram0_0_seg : org = 0x5FFE0000, len = 0x20000
|
||||
sram0_seg : org = 0x60000000, len = 0x178
|
||||
sram1_seg : org = 0x60000178, len = 0x4
|
||||
sram2_seg : org = 0x6000017C, len = 0x1C
|
||||
sram3_seg : org = 0x60000198, len = 0x4
|
||||
sram4_seg : org = 0x6000019C, len = 0x1C
|
||||
sram5_seg : org = 0x600001B8, len = 0x4
|
||||
sram6_seg : org = 0x600001BC, len = 0x1C
|
||||
sram7_seg : org = 0x600001D8, len = 0x4
|
||||
sram8_seg : org = 0x600001DC, len = 0x1C
|
||||
sram9_seg : org = 0x600001F8, len = 0x4
|
||||
sram10_seg : org = 0x600001FC, len = 0x1C
|
||||
sram11_seg : org = 0x60000218, len = 0x4
|
||||
sram12_seg : org = 0x6000021C, len = 0x1C
|
||||
sram13_seg : org = 0x60000238, len = 0x4
|
||||
sram14_seg : org = 0x6000023C, len = 0x1C
|
||||
sram15_seg : org = 0x60000258, len = 0x4
|
||||
sram16_seg : org = 0x6000025C, len = 0x1C
|
||||
sram17_seg : org = 0x60000278, len = 0x4
|
||||
sram18_seg : org = 0x6000027C, len = 0x1C
|
||||
sram19_seg : org = 0x60000298, len = 0x3FFFD68
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x3fffe000, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
srom0_phdr PT_LOAD;
|
||||
srom1_phdr PT_LOAD;
|
||||
dram0_0_phdr PT_LOAD;
|
||||
dram0_0_bss_phdr PT_LOAD;
|
||||
dram1_0_phdr PT_LOAD;
|
||||
dram1_0_bss_phdr PT_LOAD;
|
||||
iram0_0_phdr PT_LOAD;
|
||||
sram0_phdr PT_LOAD;
|
||||
sram1_phdr PT_LOAD;
|
||||
sram2_phdr PT_LOAD;
|
||||
sram3_phdr PT_LOAD;
|
||||
sram4_phdr PT_LOAD;
|
||||
sram5_phdr PT_LOAD;
|
||||
sram6_phdr PT_LOAD;
|
||||
sram7_phdr PT_LOAD;
|
||||
sram8_phdr PT_LOAD;
|
||||
sram9_phdr PT_LOAD;
|
||||
sram10_phdr PT_LOAD;
|
||||
sram11_phdr PT_LOAD;
|
||||
sram12_phdr PT_LOAD;
|
||||
sram13_phdr PT_LOAD;
|
||||
sram14_phdr PT_LOAD;
|
||||
sram15_phdr PT_LOAD;
|
||||
sram16_phdr PT_LOAD;
|
||||
sram17_phdr PT_LOAD;
|
||||
sram18_phdr PT_LOAD;
|
||||
sram19_phdr PT_LOAD;
|
||||
sram19_bss_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_srom_start = 0x40000000;
|
||||
_memmap_mem_srom_end = 0x41000000;
|
||||
_memmap_mem_dram0_start = 0x5ffa0000;
|
||||
_memmap_mem_dram0_end = 0x5ffc0000;
|
||||
_memmap_mem_dram1_start = 0x5ffc0000;
|
||||
_memmap_mem_dram1_end = 0x5ffe0000;
|
||||
_memmap_mem_iram0_start = 0x5ffe0000;
|
||||
_memmap_mem_iram0_end = 0x60000000;
|
||||
_memmap_mem_sram_start = 0x60000000;
|
||||
_memmap_mem_sram_end = 0x64000000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_srom0_start = 0x40000000;
|
||||
_memmap_seg_srom0_max = 0x400002e0;
|
||||
_memmap_seg_srom1_start = 0x400002e0;
|
||||
_memmap_seg_srom1_max = 0x41000000;
|
||||
_memmap_seg_dram0_0_start = 0x5ffa0000;
|
||||
_memmap_seg_dram0_0_max = 0x5ffc0000;
|
||||
_memmap_seg_dram1_0_start = 0x5ffc0000;
|
||||
_memmap_seg_dram1_0_max = 0x5ffe0000;
|
||||
_memmap_seg_iram0_0_start = 0x5ffe0000;
|
||||
_memmap_seg_iram0_0_max = 0x60000000;
|
||||
_memmap_seg_sram0_start = 0x60000000;
|
||||
_memmap_seg_sram0_max = 0x60000178;
|
||||
_memmap_seg_sram1_start = 0x60000178;
|
||||
_memmap_seg_sram1_max = 0x6000017c;
|
||||
_memmap_seg_sram2_start = 0x6000017c;
|
||||
_memmap_seg_sram2_max = 0x60000198;
|
||||
_memmap_seg_sram3_start = 0x60000198;
|
||||
_memmap_seg_sram3_max = 0x6000019c;
|
||||
_memmap_seg_sram4_start = 0x6000019c;
|
||||
_memmap_seg_sram4_max = 0x600001b8;
|
||||
_memmap_seg_sram5_start = 0x600001b8;
|
||||
_memmap_seg_sram5_max = 0x600001bc;
|
||||
_memmap_seg_sram6_start = 0x600001bc;
|
||||
_memmap_seg_sram6_max = 0x600001d8;
|
||||
_memmap_seg_sram7_start = 0x600001d8;
|
||||
_memmap_seg_sram7_max = 0x600001dc;
|
||||
_memmap_seg_sram8_start = 0x600001dc;
|
||||
_memmap_seg_sram8_max = 0x600001f8;
|
||||
_memmap_seg_sram9_start = 0x600001f8;
|
||||
_memmap_seg_sram9_max = 0x600001fc;
|
||||
_memmap_seg_sram10_start = 0x600001fc;
|
||||
_memmap_seg_sram10_max = 0x60000218;
|
||||
_memmap_seg_sram11_start = 0x60000218;
|
||||
_memmap_seg_sram11_max = 0x6000021c;
|
||||
_memmap_seg_sram12_start = 0x6000021c;
|
||||
_memmap_seg_sram12_max = 0x60000238;
|
||||
_memmap_seg_sram13_start = 0x60000238;
|
||||
_memmap_seg_sram13_max = 0x6000023c;
|
||||
_memmap_seg_sram14_start = 0x6000023c;
|
||||
_memmap_seg_sram14_max = 0x60000258;
|
||||
_memmap_seg_sram15_start = 0x60000258;
|
||||
_memmap_seg_sram15_max = 0x6000025c;
|
||||
_memmap_seg_sram16_start = 0x6000025c;
|
||||
_memmap_seg_sram16_max = 0x60000278;
|
||||
_memmap_seg_sram17_start = 0x60000278;
|
||||
_memmap_seg_sram17_max = 0x6000027c;
|
||||
_memmap_seg_sram18_start = 0x6000027c;
|
||||
_memmap_seg_sram18_max = 0x60000298;
|
||||
_memmap_seg_sram19_start = 0x60000298;
|
||||
_memmap_seg_sram19_max = 0x64000000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_vecbase_reset = 0x60000000);
|
||||
PROVIDE(_memmap_reset_vector = 0x40000000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00001100;
|
||||
_memmap_cacheattr_wt_base = 0x00001100;
|
||||
_memmap_cacheattr_bp_base = 0x00002200;
|
||||
_memmap_cacheattr_unused_mask = 0xFFFF00FF;
|
||||
_memmap_cacheattr_wb_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_wba_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_wt_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_bp_trapnull = 0x2222222F;
|
||||
_memmap_cacheattr_wb_strict = 0xFFFF11FF;
|
||||
_memmap_cacheattr_wt_strict = 0xFFFF11FF;
|
||||
_memmap_cacheattr_bp_strict = 0xFFFF22FF;
|
||||
_memmap_cacheattr_wb_allvalid = 0x22221122;
|
||||
_memmap_cacheattr_wt_allvalid = 0x22221122;
|
||||
_memmap_cacheattr_bp_allvalid = 0x22222222;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom0_end = ALIGN(0x8);
|
||||
} >srom0_seg :srom0_phdr
|
||||
|
||||
.srom.rodata : ALIGN(4)
|
||||
{
|
||||
_srom_rodata_start = ABSOLUTE(.);
|
||||
*(.srom.rodata)
|
||||
_srom_rodata_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.srom.text : ALIGN(4)
|
||||
{
|
||||
_srom_text_start = ABSOLUTE(.);
|
||||
*(.srom.literal .srom.text)
|
||||
_srom_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom1_end = ALIGN(0x8);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.dram0.rodata : ALIGN(4)
|
||||
{
|
||||
_dram0_rodata_start = ABSOLUTE(.);
|
||||
*(.dram0.rodata)
|
||||
_dram0_rodata_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.literal : ALIGN(4)
|
||||
{
|
||||
_dram0_literal_start = ABSOLUTE(.);
|
||||
*(.dram0.literal)
|
||||
_dram0_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.data : ALIGN(4)
|
||||
{
|
||||
_dram0_data_start = ABSOLUTE(.);
|
||||
*(.dram0.data)
|
||||
_dram0_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_dram0_bss_start = ABSOLUTE(.);
|
||||
*(.dram0.bss)
|
||||
. = ALIGN (8);
|
||||
_dram0_bss_end = ABSOLUTE(.);
|
||||
_memmap_seg_dram0_0_end = ALIGN(0x8);
|
||||
} >dram0_0_seg :dram0_0_bss_phdr
|
||||
|
||||
.dram1.rodata : ALIGN(4)
|
||||
{
|
||||
_dram1_rodata_start = ABSOLUTE(.);
|
||||
*(.dram1.rodata)
|
||||
_dram1_rodata_end = ABSOLUTE(.);
|
||||
} >dram1_0_seg :dram1_0_phdr
|
||||
|
||||
.iram0.literal : ALIGN(4)
|
||||
{
|
||||
_iram0_literal_start = ABSOLUTE(.);
|
||||
*(.iram0.literal)
|
||||
*(.iram.literal)
|
||||
*(.iram.text.literal)
|
||||
_iram0_literal_end = ABSOLUTE(.);
|
||||
} >dram1_0_seg :dram1_0_phdr
|
||||
|
||||
.dram1.literal : ALIGN(4)
|
||||
{
|
||||
_dram1_literal_start = ABSOLUTE(.);
|
||||
*(.dram1.literal)
|
||||
_dram1_literal_end = ABSOLUTE(.);
|
||||
} >dram1_0_seg :dram1_0_phdr
|
||||
|
||||
.dram1.data : ALIGN(4)
|
||||
{
|
||||
_dram1_data_start = ABSOLUTE(.);
|
||||
*(.dram1.data)
|
||||
_dram1_data_end = ABSOLUTE(.);
|
||||
} >dram1_0_seg :dram1_0_phdr
|
||||
|
||||
.dram1.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_dram1_bss_start = ABSOLUTE(.);
|
||||
*(.dram1.bss)
|
||||
. = ALIGN (8);
|
||||
_dram1_bss_end = ABSOLUTE(.);
|
||||
_memmap_seg_dram1_0_end = ALIGN(0x8);
|
||||
} >dram1_0_seg :dram1_0_bss_phdr
|
||||
|
||||
.iram0.text : ALIGN(4)
|
||||
{
|
||||
_iram0_text_start = ABSOLUTE(.);
|
||||
*(.iram0.text)
|
||||
*(.iram.text)
|
||||
_iram0_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_0_end = ALIGN(0x8);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >iram0_0_seg :iram0_0_phdr
|
||||
|
||||
.WindowVectors.text : ALIGN(4)
|
||||
{
|
||||
_WindowVectors_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.WindowVectors.text))
|
||||
_WindowVectors_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram0_end = ALIGN(0x8);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.Level2InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level2InterruptVector.literal)
|
||||
_Level2InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram1_end = ALIGN(0x8);
|
||||
} >sram1_seg :sram1_phdr
|
||||
|
||||
.Level2InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level2InterruptVector.text))
|
||||
_Level2InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram2_end = ALIGN(0x8);
|
||||
} >sram2_seg :sram2_phdr
|
||||
|
||||
.Level3InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level3InterruptVector.literal)
|
||||
_Level3InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram3_end = ALIGN(0x8);
|
||||
} >sram3_seg :sram3_phdr
|
||||
|
||||
.Level3InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level3InterruptVector.text))
|
||||
_Level3InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram4_end = ALIGN(0x8);
|
||||
} >sram4_seg :sram4_phdr
|
||||
|
||||
.Level4InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level4InterruptVector.literal)
|
||||
_Level4InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram5_end = ALIGN(0x8);
|
||||
} >sram5_seg :sram5_phdr
|
||||
|
||||
.Level4InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level4InterruptVector.text))
|
||||
_Level4InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram6_end = ALIGN(0x8);
|
||||
} >sram6_seg :sram6_phdr
|
||||
|
||||
.Level5InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level5InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level5InterruptVector.literal)
|
||||
_Level5InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram7_end = ALIGN(0x8);
|
||||
} >sram7_seg :sram7_phdr
|
||||
|
||||
.Level5InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level5InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level5InterruptVector.text))
|
||||
_Level5InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram8_end = ALIGN(0x8);
|
||||
} >sram8_seg :sram8_phdr
|
||||
|
||||
.DebugExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DebugExceptionVector.literal)
|
||||
_DebugExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram9_end = ALIGN(0x8);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.DebugExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DebugExceptionVector.text))
|
||||
_DebugExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram10_end = ALIGN(0x8);
|
||||
} >sram10_seg :sram10_phdr
|
||||
|
||||
.NMIExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_NMIExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.NMIExceptionVector.literal)
|
||||
_NMIExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram11_end = ALIGN(0x8);
|
||||
} >sram11_seg :sram11_phdr
|
||||
|
||||
.NMIExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_NMIExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.NMIExceptionVector.text))
|
||||
_NMIExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram12_end = ALIGN(0x8);
|
||||
} >sram12_seg :sram12_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram13_end = ALIGN(0x8);
|
||||
} >sram13_seg :sram13_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram14_end = ALIGN(0x8);
|
||||
} >sram14_seg :sram14_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram15_end = ALIGN(0x8);
|
||||
} >sram15_seg :sram15_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram16_end = ALIGN(0x8);
|
||||
} >sram16_seg :sram16_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram17_end = ALIGN(0x8);
|
||||
} >sram17_seg :sram17_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram18_end = ALIGN(0x8);
|
||||
} >sram18_seg :sram18_phdr
|
||||
|
||||
.sram.rodata : ALIGN(4)
|
||||
{
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
_sram_rodata_start = ABSOLUTE(.);
|
||||
*(.sram.rodata)
|
||||
_sram_rodata_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_dram0_bss_start)
|
||||
LONG(_dram0_bss_end)
|
||||
LONG(_dram1_bss_start)
|
||||
LONG(_dram1_bss_end)
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
.sram.text : ALIGN(4)
|
||||
{
|
||||
_sram_text_start = ABSOLUTE(.);
|
||||
*(.sram.literal .sram.text)
|
||||
_sram_text_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >sram19_seg :sram19_phdr
|
||||
_image_text_end = .;
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.sram.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_sram19_end = ALIGN(0x8);
|
||||
} >sram19_seg :sram19_bss_phdr
|
||||
PROVIDE(__stack = 0x64000000);
|
||||
_heap_sentry = 0x64000000;
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_XRC_FUSION_AON_ALL_LM
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "XRC_FUSION_AON_ALL_LM"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 13
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_XRC_FUSION_AON_ALL_LM
|
||||
bool "XRC_FUSION_AON_ALL_LM core"
|
|
@ -1,450 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION sram0_seg :sram0_phdr
|
||||
#define ROMABLE_REGION srom1_seg :srom1_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dram0_0_seg : org = 0x3FFE0000, len = 0x20000
|
||||
iram0_0_seg : org = 0x40000000, len = 0x178
|
||||
iram0_2_seg : org = 0x40000180, len = 0x38
|
||||
iram0_4_seg : org = 0x400001C0, len = 0x38
|
||||
iram0_6_seg : org = 0x40000200, len = 0x38
|
||||
iram0_8_seg : org = 0x40000280, len = 0x40
|
||||
iram0_9_seg : org = 0x400002C0, len = 0x1FD40
|
||||
srom0_seg : org = 0x50000000, len = 0x300
|
||||
srom1_seg : org = 0x50000300, len = 0xFFFD00
|
||||
sram0_seg : org = 0x60000000, len = 0x4000000
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x3ffde000, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
dram0_0_phdr PT_LOAD;
|
||||
dram0_0_bss_phdr PT_LOAD;
|
||||
iram0_0_phdr PT_LOAD;
|
||||
iram0_1_phdr PT_LOAD;
|
||||
iram0_2_phdr PT_LOAD;
|
||||
iram0_3_phdr PT_LOAD;
|
||||
iram0_4_phdr PT_LOAD;
|
||||
iram0_5_phdr PT_LOAD;
|
||||
iram0_6_phdr PT_LOAD;
|
||||
iram0_7_phdr PT_LOAD;
|
||||
iram0_8_phdr PT_LOAD;
|
||||
iram0_9_phdr PT_LOAD;
|
||||
srom0_phdr PT_LOAD;
|
||||
srom1_phdr PT_LOAD;
|
||||
sram0_phdr PT_LOAD;
|
||||
sram0_bss_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_dram0_start = 0x3ffe0000;
|
||||
_memmap_mem_dram0_end = 0x40000000;
|
||||
_memmap_mem_iram0_start = 0x40000000;
|
||||
_memmap_mem_iram0_end = 0x40020000;
|
||||
_memmap_mem_srom_start = 0x50000000;
|
||||
_memmap_mem_srom_end = 0x51000000;
|
||||
_memmap_mem_sram_start = 0x60000000;
|
||||
_memmap_mem_sram_end = 0x64000000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_dram0_0_start = 0x3ffe0000;
|
||||
_memmap_seg_dram0_0_max = 0x40000000;
|
||||
_memmap_seg_iram0_0_start = 0x40000000;
|
||||
_memmap_seg_iram0_0_max = 0x40000178;
|
||||
_memmap_seg_iram0_2_start = 0x40000180;
|
||||
_memmap_seg_iram0_2_max = 0x400001b8;
|
||||
_memmap_seg_iram0_4_start = 0x400001c0;
|
||||
_memmap_seg_iram0_4_max = 0x400001f8;
|
||||
_memmap_seg_iram0_6_start = 0x40000200;
|
||||
_memmap_seg_iram0_6_max = 0x40000238;
|
||||
_memmap_seg_iram0_8_start = 0x40000280;
|
||||
_memmap_seg_iram0_8_max = 0x400002c0;
|
||||
_memmap_seg_iram0_9_start = 0x400002c0;
|
||||
_memmap_seg_iram0_9_max = 0x40020000;
|
||||
_memmap_seg_srom0_start = 0x50000000;
|
||||
_memmap_seg_srom0_max = 0x50000300;
|
||||
_memmap_seg_srom1_start = 0x50000300;
|
||||
_memmap_seg_srom1_max = 0x51000000;
|
||||
_memmap_seg_sram0_start = 0x60000000;
|
||||
_memmap_seg_sram0_max = 0x64000000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_vecbase_reset = 0x40000000);
|
||||
PROVIDE(_memmap_reset_vector = 0x50000000);
|
||||
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00001120;
|
||||
_memmap_cacheattr_wt_base = 0x00001120;
|
||||
_memmap_cacheattr_bp_base = 0x00002220;
|
||||
_memmap_cacheattr_unused_mask = 0xFFFF000F;
|
||||
_memmap_cacheattr_wb_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_wba_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_wt_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_bp_trapnull = 0x2222222F;
|
||||
_memmap_cacheattr_wb_strict = 0xFFFF112F;
|
||||
_memmap_cacheattr_wt_strict = 0xFFFF112F;
|
||||
_memmap_cacheattr_bp_strict = 0xFFFF222F;
|
||||
_memmap_cacheattr_wb_allvalid = 0x22221122;
|
||||
_memmap_cacheattr_wt_allvalid = 0x22221122;
|
||||
_memmap_cacheattr_bp_allvalid = 0x22222222;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.dram0.rodata : ALIGN(4)
|
||||
{
|
||||
_dram0_rodata_start = ABSOLUTE(.);
|
||||
*(.dram0.rodata)
|
||||
*(.dram.rodata)
|
||||
_dram0_rodata_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.DebugExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DebugExceptionVector.literal)
|
||||
_DebugExceptionVector_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.iram0.literal : ALIGN(4)
|
||||
{
|
||||
_iram0_literal_start = ABSOLUTE(.);
|
||||
*(.iram0.literal)
|
||||
*(.iram.literal)
|
||||
*(.iram.text.literal)
|
||||
_iram0_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.literal : ALIGN(4)
|
||||
{
|
||||
_dram0_literal_start = ABSOLUTE(.);
|
||||
*(.dram0.literal)
|
||||
*(.dram.literal)
|
||||
_dram0_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.data : ALIGN(4)
|
||||
{
|
||||
_dram0_data_start = ABSOLUTE(.);
|
||||
*(.dram0.data)
|
||||
*(.dram.data)
|
||||
_dram0_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_dram0_bss_start = ABSOLUTE(.);
|
||||
*(.dram0.bss)
|
||||
. = ALIGN (8);
|
||||
_dram0_bss_end = ABSOLUTE(.);
|
||||
_memmap_seg_dram0_0_end = ALIGN(0x8);
|
||||
} >dram0_0_seg :dram0_0_bss_phdr
|
||||
|
||||
.WindowVectors.text : ALIGN(4)
|
||||
{
|
||||
_WindowVectors_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.WindowVectors.text))
|
||||
_WindowVectors_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_0_end = ALIGN(0x8);
|
||||
} >iram0_0_seg :iram0_0_phdr
|
||||
|
||||
.DebugExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DebugExceptionVector.text))
|
||||
_DebugExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_2_end = ALIGN(0x8);
|
||||
} >iram0_2_seg :iram0_2_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_4_end = ALIGN(0x8);
|
||||
} >iram0_4_seg :iram0_4_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_6_end = ALIGN(0x8);
|
||||
} >iram0_6_seg :iram0_6_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_8_end = ALIGN(0x8);
|
||||
} >iram0_8_seg :iram0_8_phdr
|
||||
|
||||
.iram0.text : ALIGN(4)
|
||||
{
|
||||
_iram0_text_start = ABSOLUTE(.);
|
||||
*(.iram0.text)
|
||||
*(.iram.text)
|
||||
_iram0_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_9_end = ALIGN(0x8);
|
||||
} >iram0_9_seg :iram0_9_phdr
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom0_end = ALIGN(0x8);
|
||||
} >srom0_seg :srom0_phdr
|
||||
|
||||
.srom.rodata : ALIGN(4)
|
||||
{
|
||||
_srom_rodata_start = ABSOLUTE(.);
|
||||
*(.srom.rodata)
|
||||
_srom_rodata_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.srom.text : ALIGN(4)
|
||||
{
|
||||
_srom_text_start = ABSOLUTE(.);
|
||||
*(.srom.literal .srom.text)
|
||||
_srom_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom1_end = ALIGN(0x8);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.sram.rodata : ALIGN(4)
|
||||
{
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
_sram_rodata_start = ABSOLUTE(.);
|
||||
*(.sram.rodata)
|
||||
_sram_rodata_end = ABSOLUTE(.);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_dram0_bss_start)
|
||||
LONG(_dram0_bss_end)
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.sram.text : ALIGN(4)
|
||||
{
|
||||
_sram_text_start = ABSOLUTE(.);
|
||||
*(.sram.literal .sram.text)
|
||||
_sram_text_end = ABSOLUTE(.);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >sram0_seg :sram0_phdr
|
||||
_image_text_end = .;
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.sram.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_sram0_end = ALIGN(0x8);
|
||||
} >sram0_seg :sram0_bss_phdr
|
||||
|
||||
PROVIDE(__stack = 0x64000000);
|
||||
_heap_sentry = 0x64000000;
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -12,9 +12,6 @@ config SOC
|
|||
config IRQ_OFFLOAD_INTNUM
|
||||
default 7
|
||||
|
||||
config XTENSA_ASM2
|
||||
default y
|
||||
|
||||
config MP_NUM_CPUS
|
||||
default 2
|
||||
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_HIFI2_STD
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "hifi2_std"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 7
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_HIFI2_STD
|
||||
bool "hifi2_std core"
|
|
@ -1,621 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION sram19_seg :sram19_phdr
|
||||
#define ROMABLE_REGION srom1_seg :srom1_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dram1_0_seg : org = 0x3FFC0000, len = 0x20000
|
||||
dram0_0_seg : org = 0x3FFE0000, len = 0x20000
|
||||
iram0_0_seg : org = 0x40000000, len = 0x20000
|
||||
srom0_seg : org = 0x50000000, len = 0x300
|
||||
srom1_seg : org = 0x50000300, len = 0xFFFD00
|
||||
sram0_seg : org = 0x60000000, len = 0x178
|
||||
sram1_seg : org = 0x60000178, len = 0x8
|
||||
sram2_seg : org = 0x60000180, len = 0x38
|
||||
sram3_seg : org = 0x600001B8, len = 0x8
|
||||
sram4_seg : org = 0x600001C0, len = 0x38
|
||||
sram5_seg : org = 0x600001F8, len = 0x8
|
||||
sram6_seg : org = 0x60000200, len = 0x38
|
||||
sram7_seg : org = 0x60000238, len = 0x8
|
||||
sram8_seg : org = 0x60000240, len = 0x38
|
||||
sram9_seg : org = 0x60000278, len = 0x8
|
||||
sram10_seg : org = 0x60000280, len = 0x38
|
||||
sram11_seg : org = 0x600002B8, len = 0x8
|
||||
sram12_seg : org = 0x600002C0, len = 0x38
|
||||
sram13_seg : org = 0x600002F8, len = 0x8
|
||||
sram14_seg : org = 0x60000300, len = 0x38
|
||||
sram15_seg : org = 0x60000338, len = 0x8
|
||||
sram16_seg : org = 0x60000340, len = 0x38
|
||||
sram17_seg : org = 0x60000378, len = 0x48
|
||||
sram18_seg : org = 0x600003C0, len = 0x40
|
||||
sram19_seg : org = 0x60000400, len = 0x3FFFC00
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x3ffbe000, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
dram1_0_phdr PT_LOAD;
|
||||
dram1_0_bss_phdr PT_LOAD;
|
||||
dram0_0_phdr PT_LOAD;
|
||||
dram0_0_bss_phdr PT_LOAD;
|
||||
iram0_0_phdr PT_LOAD;
|
||||
srom0_phdr PT_LOAD;
|
||||
srom1_phdr PT_LOAD;
|
||||
sram0_phdr PT_LOAD;
|
||||
sram1_phdr PT_LOAD;
|
||||
sram2_phdr PT_LOAD;
|
||||
sram3_phdr PT_LOAD;
|
||||
sram4_phdr PT_LOAD;
|
||||
sram5_phdr PT_LOAD;
|
||||
sram6_phdr PT_LOAD;
|
||||
sram7_phdr PT_LOAD;
|
||||
sram8_phdr PT_LOAD;
|
||||
sram9_phdr PT_LOAD;
|
||||
sram10_phdr PT_LOAD;
|
||||
sram11_phdr PT_LOAD;
|
||||
sram12_phdr PT_LOAD;
|
||||
sram13_phdr PT_LOAD;
|
||||
sram14_phdr PT_LOAD;
|
||||
sram15_phdr PT_LOAD;
|
||||
sram16_phdr PT_LOAD;
|
||||
sram17_phdr PT_LOAD;
|
||||
sram18_phdr PT_LOAD;
|
||||
sram19_phdr PT_LOAD;
|
||||
sram19_bss_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_dram1_start = 0x3ffc0000;
|
||||
_memmap_mem_dram1_end = 0x3ffe0000;
|
||||
_memmap_mem_dram0_start = 0x3ffe0000;
|
||||
_memmap_mem_dram0_end = 0x40000000;
|
||||
_memmap_mem_iram0_start = 0x40000000;
|
||||
_memmap_mem_iram0_end = 0x40020000;
|
||||
_memmap_mem_srom_start = 0x50000000;
|
||||
_memmap_mem_srom_end = 0x51000000;
|
||||
_memmap_mem_sram_start = 0x60000000;
|
||||
_memmap_mem_sram_end = 0x64000000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_dram1_0_start = 0x3ffc0000;
|
||||
_memmap_seg_dram1_0_max = 0x3ffe0000;
|
||||
_memmap_seg_dram0_0_start = 0x3ffe0000;
|
||||
_memmap_seg_dram0_0_max = 0x40000000;
|
||||
_memmap_seg_iram0_0_start = 0x40000000;
|
||||
_memmap_seg_iram0_0_max = 0x40020000;
|
||||
_memmap_seg_srom0_start = 0x50000000;
|
||||
_memmap_seg_srom0_max = 0x50000300;
|
||||
_memmap_seg_srom1_start = 0x50000300;
|
||||
_memmap_seg_srom1_max = 0x51000000;
|
||||
_memmap_seg_sram0_start = 0x60000000;
|
||||
_memmap_seg_sram0_max = 0x60000178;
|
||||
_memmap_seg_sram1_start = 0x60000178;
|
||||
_memmap_seg_sram1_max = 0x60000180;
|
||||
_memmap_seg_sram2_start = 0x60000180;
|
||||
_memmap_seg_sram2_max = 0x600001b8;
|
||||
_memmap_seg_sram3_start = 0x600001b8;
|
||||
_memmap_seg_sram3_max = 0x600001c0;
|
||||
_memmap_seg_sram4_start = 0x600001c0;
|
||||
_memmap_seg_sram4_max = 0x600001f8;
|
||||
_memmap_seg_sram5_start = 0x600001f8;
|
||||
_memmap_seg_sram5_max = 0x60000200;
|
||||
_memmap_seg_sram6_start = 0x60000200;
|
||||
_memmap_seg_sram6_max = 0x60000238;
|
||||
_memmap_seg_sram7_start = 0x60000238;
|
||||
_memmap_seg_sram7_max = 0x60000240;
|
||||
_memmap_seg_sram8_start = 0x60000240;
|
||||
_memmap_seg_sram8_max = 0x60000278;
|
||||
_memmap_seg_sram9_start = 0x60000278;
|
||||
_memmap_seg_sram9_max = 0x60000280;
|
||||
_memmap_seg_sram10_start = 0x60000280;
|
||||
_memmap_seg_sram10_max = 0x600002b8;
|
||||
_memmap_seg_sram11_start = 0x600002b8;
|
||||
_memmap_seg_sram11_max = 0x600002c0;
|
||||
_memmap_seg_sram12_start = 0x600002c0;
|
||||
_memmap_seg_sram12_max = 0x600002f8;
|
||||
_memmap_seg_sram13_start = 0x600002f8;
|
||||
_memmap_seg_sram13_max = 0x60000300;
|
||||
_memmap_seg_sram14_start = 0x60000300;
|
||||
_memmap_seg_sram14_max = 0x60000338;
|
||||
_memmap_seg_sram15_start = 0x60000338;
|
||||
_memmap_seg_sram15_max = 0x60000340;
|
||||
_memmap_seg_sram16_start = 0x60000340;
|
||||
_memmap_seg_sram16_max = 0x60000378;
|
||||
_memmap_seg_sram17_start = 0x60000378;
|
||||
_memmap_seg_sram17_max = 0x600003c0;
|
||||
_memmap_seg_sram18_start = 0x600003c0;
|
||||
_memmap_seg_sram18_max = 0x60000400;
|
||||
_memmap_seg_sram19_start = 0x60000400;
|
||||
_memmap_seg_sram19_max = 0x64000000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_vecbase_reset = 0x60000000);
|
||||
PROVIDE(_memmap_reset_vector = 0x50000000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00004420;
|
||||
_memmap_cacheattr_wt_base = 0x00001120;
|
||||
_memmap_cacheattr_bp_base = 0x00002220;
|
||||
_memmap_cacheattr_unused_mask = 0xFFFF000F;
|
||||
_memmap_cacheattr_wb_trapnull = 0x2222442F;
|
||||
_memmap_cacheattr_wba_trapnull = 0x2222442F;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x2222552F;
|
||||
_memmap_cacheattr_wt_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_bp_trapnull = 0x2222222F;
|
||||
_memmap_cacheattr_wb_strict = 0xFFFF442F;
|
||||
_memmap_cacheattr_wt_strict = 0xFFFF112F;
|
||||
_memmap_cacheattr_bp_strict = 0xFFFF222F;
|
||||
_memmap_cacheattr_wb_allvalid = 0x22224422;
|
||||
_memmap_cacheattr_wt_allvalid = 0x22221122;
|
||||
_memmap_cacheattr_bp_allvalid = 0x22222222;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.dram1.rodata : ALIGN(4)
|
||||
{
|
||||
_dram1_rodata_start = ABSOLUTE(.);
|
||||
*(.dram1.rodata)
|
||||
_dram1_rodata_end = ABSOLUTE(.);
|
||||
} >dram1_0_seg :dram1_0_phdr
|
||||
|
||||
.dram1.literal : ALIGN(4)
|
||||
{
|
||||
_dram1_literal_start = ABSOLUTE(.);
|
||||
*(.dram1.literal)
|
||||
_dram1_literal_end = ABSOLUTE(.);
|
||||
} >dram1_0_seg :dram1_0_phdr
|
||||
|
||||
.dram1.data : ALIGN(4)
|
||||
{
|
||||
_dram1_data_start = ABSOLUTE(.);
|
||||
*(.dram1.data)
|
||||
_dram1_data_end = ABSOLUTE(.);
|
||||
} >dram1_0_seg :dram1_0_phdr
|
||||
|
||||
.dram1.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_dram1_bss_start = ABSOLUTE(.);
|
||||
*(.dram1.bss)
|
||||
. = ALIGN (8);
|
||||
_dram1_bss_end = ABSOLUTE(.);
|
||||
_memmap_seg_dram1_0_end = ALIGN(0x8);
|
||||
} >dram1_0_seg :dram1_0_bss_phdr
|
||||
|
||||
.dram0.rodata : ALIGN(4)
|
||||
{
|
||||
_dram0_rodata_start = ABSOLUTE(.);
|
||||
*(.dram0.rodata)
|
||||
_dram0_rodata_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.iram0.literal : ALIGN(4)
|
||||
{
|
||||
_iram0_literal_start = ABSOLUTE(.);
|
||||
*(.iram0.literal)
|
||||
*(.iram.literal)
|
||||
*(.iram.text.literal)
|
||||
_iram0_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.literal : ALIGN(4)
|
||||
{
|
||||
_dram0_literal_start = ABSOLUTE(.);
|
||||
*(.dram0.literal)
|
||||
_dram0_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.data : ALIGN(4)
|
||||
{
|
||||
_dram0_data_start = ABSOLUTE(.);
|
||||
*(.dram0.data)
|
||||
_dram0_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_dram0_bss_start = ABSOLUTE(.);
|
||||
*(.dram0.bss)
|
||||
. = ALIGN (8);
|
||||
_dram0_bss_end = ABSOLUTE(.);
|
||||
_memmap_seg_dram0_0_end = ALIGN(0x8);
|
||||
} >dram0_0_seg :dram0_0_bss_phdr
|
||||
|
||||
.iram0.text : ALIGN(4)
|
||||
{
|
||||
_iram0_text_start = ABSOLUTE(.);
|
||||
*(.iram0.text)
|
||||
*(.iram.text)
|
||||
_iram0_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_0_end = ALIGN(0x8);
|
||||
} >iram0_0_seg :iram0_0_phdr
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom0_end = ALIGN(0x8);
|
||||
} >srom0_seg :srom0_phdr
|
||||
|
||||
.srom.rodata : ALIGN(4)
|
||||
{
|
||||
_srom_rodata_start = ABSOLUTE(.);
|
||||
*(.srom.rodata)
|
||||
_srom_rodata_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.srom.text : ALIGN(4)
|
||||
{
|
||||
_srom_text_start = ABSOLUTE(.);
|
||||
*(.srom.literal .srom.text)
|
||||
_srom_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom1_end = ALIGN(0x8);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.WindowVectors.text : ALIGN(4)
|
||||
{
|
||||
_WindowVectors_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.WindowVectors.text))
|
||||
_WindowVectors_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram0_end = ALIGN(0x8);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.Level2InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level2InterruptVector.literal)
|
||||
_Level2InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram1_end = ALIGN(0x8);
|
||||
} >sram1_seg :sram1_phdr
|
||||
|
||||
.Level2InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level2InterruptVector.text))
|
||||
_Level2InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram2_end = ALIGN(0x8);
|
||||
} >sram2_seg :sram2_phdr
|
||||
|
||||
.Level3InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level3InterruptVector.literal)
|
||||
_Level3InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram3_end = ALIGN(0x8);
|
||||
} >sram3_seg :sram3_phdr
|
||||
|
||||
.Level3InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level3InterruptVector.text))
|
||||
_Level3InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram4_end = ALIGN(0x8);
|
||||
} >sram4_seg :sram4_phdr
|
||||
|
||||
.Level4InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level4InterruptVector.literal)
|
||||
_Level4InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram5_end = ALIGN(0x8);
|
||||
} >sram5_seg :sram5_phdr
|
||||
|
||||
.Level4InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level4InterruptVector.text))
|
||||
_Level4InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram6_end = ALIGN(0x8);
|
||||
} >sram6_seg :sram6_phdr
|
||||
|
||||
.Level5InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level5InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level5InterruptVector.literal)
|
||||
_Level5InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram7_end = ALIGN(0x8);
|
||||
} >sram7_seg :sram7_phdr
|
||||
|
||||
.Level5InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level5InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level5InterruptVector.text))
|
||||
_Level5InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram8_end = ALIGN(0x8);
|
||||
} >sram8_seg :sram8_phdr
|
||||
|
||||
.DebugExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DebugExceptionVector.literal)
|
||||
_DebugExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram9_end = ALIGN(0x8);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.DebugExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DebugExceptionVector.text))
|
||||
_DebugExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram10_end = ALIGN(0x8);
|
||||
} >sram10_seg :sram10_phdr
|
||||
|
||||
.NMIExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_NMIExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.NMIExceptionVector.literal)
|
||||
_NMIExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram11_end = ALIGN(0x8);
|
||||
} >sram11_seg :sram11_phdr
|
||||
|
||||
.NMIExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_NMIExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.NMIExceptionVector.text))
|
||||
_NMIExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram12_end = ALIGN(0x8);
|
||||
} >sram12_seg :sram12_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram13_end = ALIGN(0x8);
|
||||
} >sram13_seg :sram13_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram14_end = ALIGN(0x8);
|
||||
} >sram14_seg :sram14_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram15_end = ALIGN(0x8);
|
||||
} >sram15_seg :sram15_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram16_end = ALIGN(0x8);
|
||||
} >sram16_seg :sram16_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram17_end = ALIGN(0x8);
|
||||
} >sram17_seg :sram17_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram18_end = ALIGN(0x8);
|
||||
} >sram18_seg :sram18_phdr
|
||||
|
||||
.sram.rodata : ALIGN(4)
|
||||
{
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
_sram_rodata_start = ABSOLUTE(.);
|
||||
*(.sram.rodata)
|
||||
_sram_rodata_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_dram1_bss_start)
|
||||
LONG(_dram1_bss_end)
|
||||
LONG(_dram0_bss_start)
|
||||
LONG(_dram0_bss_end)
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
.sram.text : ALIGN(4)
|
||||
{
|
||||
_sram_text_start = ABSOLUTE(.);
|
||||
*(.sram.literal .sram.text)
|
||||
_sram_text_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >sram19_seg :sram19_phdr
|
||||
_image_text_end = .;
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >sram19_seg :sram19_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.sram.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_sram19_end = ALIGN(0x8);
|
||||
} >sram19_seg :sram19_bss_phdr
|
||||
PROVIDE(__stack = 0x64000000);
|
||||
_heap_sentry = 0x64000000;
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_HIFI3_BD5
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "hifi3_bd5"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 13
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_HIFI3_BD5
|
||||
bool "hifi3_bd5 core"
|
|
@ -1,397 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION sram9_seg :sram9_phdr
|
||||
#define ROMABLE_REGION srom1_seg :srom1_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
srom0_seg : org = 0x50000000, len = 0x2E0
|
||||
srom1_seg : org = 0x500002E0, len = 0xFFFD20
|
||||
sram0_seg : org = 0x60000000, len = 0x178
|
||||
sram1_seg : org = 0x60000178, len = 0x4
|
||||
sram2_seg : org = 0x6000017C, len = 0x1C
|
||||
sram3_seg : org = 0x60000198, len = 0x4
|
||||
sram4_seg : org = 0x6000019C, len = 0x1C
|
||||
sram5_seg : org = 0x600001B8, len = 0x4
|
||||
sram6_seg : org = 0x600001BC, len = 0x1C
|
||||
sram7_seg : org = 0x600001D8, len = 0x4
|
||||
sram8_seg : org = 0x600001DC, len = 0x1C
|
||||
sram9_seg : org = 0x600001F8, len = 0x3FFFE08
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x4fffe000, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
srom0_phdr PT_LOAD;
|
||||
srom1_phdr PT_LOAD;
|
||||
sram0_phdr PT_LOAD;
|
||||
sram1_phdr PT_LOAD;
|
||||
sram2_phdr PT_LOAD;
|
||||
sram3_phdr PT_LOAD;
|
||||
sram4_phdr PT_LOAD;
|
||||
sram5_phdr PT_LOAD;
|
||||
sram6_phdr PT_LOAD;
|
||||
sram7_phdr PT_LOAD;
|
||||
sram8_phdr PT_LOAD;
|
||||
sram9_phdr PT_LOAD;
|
||||
sram9_bss_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_srom_start = 0x50000000;
|
||||
_memmap_mem_srom_end = 0x51000000;
|
||||
_memmap_mem_sram_start = 0x60000000;
|
||||
_memmap_mem_sram_end = 0x64000000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_srom0_start = 0x50000000;
|
||||
_memmap_seg_srom0_max = 0x500002e0;
|
||||
_memmap_seg_srom1_start = 0x500002e0;
|
||||
_memmap_seg_srom1_max = 0x51000000;
|
||||
_memmap_seg_sram0_start = 0x60000000;
|
||||
_memmap_seg_sram0_max = 0x60000178;
|
||||
_memmap_seg_sram1_start = 0x60000178;
|
||||
_memmap_seg_sram1_max = 0x6000017c;
|
||||
_memmap_seg_sram2_start = 0x6000017c;
|
||||
_memmap_seg_sram2_max = 0x60000198;
|
||||
_memmap_seg_sram3_start = 0x60000198;
|
||||
_memmap_seg_sram3_max = 0x6000019c;
|
||||
_memmap_seg_sram4_start = 0x6000019c;
|
||||
_memmap_seg_sram4_max = 0x600001b8;
|
||||
_memmap_seg_sram5_start = 0x600001b8;
|
||||
_memmap_seg_sram5_max = 0x600001bc;
|
||||
_memmap_seg_sram6_start = 0x600001bc;
|
||||
_memmap_seg_sram6_max = 0x600001d8;
|
||||
_memmap_seg_sram7_start = 0x600001d8;
|
||||
_memmap_seg_sram7_max = 0x600001dc;
|
||||
_memmap_seg_sram8_start = 0x600001dc;
|
||||
_memmap_seg_sram8_max = 0x600001f8;
|
||||
_memmap_seg_sram9_start = 0x600001f8;
|
||||
_memmap_seg_sram9_max = 0x64000000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_vecbase_reset = 0x60000000);
|
||||
PROVIDE(_memmap_reset_vector = 0x50000000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00004400;
|
||||
_memmap_cacheattr_wt_base = 0x00001100;
|
||||
_memmap_cacheattr_bp_base = 0x00002200;
|
||||
_memmap_cacheattr_unused_mask = 0xFFFF00FF;
|
||||
_memmap_cacheattr_wb_trapnull = 0x2222442F;
|
||||
_memmap_cacheattr_wba_trapnull = 0x2222442F;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x2222552F;
|
||||
_memmap_cacheattr_wt_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_bp_trapnull = 0x2222222F;
|
||||
_memmap_cacheattr_wb_strict = 0xFFFF44FF;
|
||||
_memmap_cacheattr_wt_strict = 0xFFFF11FF;
|
||||
_memmap_cacheattr_bp_strict = 0xFFFF22FF;
|
||||
_memmap_cacheattr_wb_allvalid = 0x22224422;
|
||||
_memmap_cacheattr_wt_allvalid = 0x22221122;
|
||||
_memmap_cacheattr_bp_allvalid = 0x22222222;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom0_end = ALIGN(0x8);
|
||||
} >srom0_seg :srom0_phdr
|
||||
|
||||
.srom.rodata : ALIGN(4)
|
||||
{
|
||||
_srom_rodata_start = ABSOLUTE(.);
|
||||
*(.srom.rodata)
|
||||
_srom_rodata_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.srom.text : ALIGN(4)
|
||||
{
|
||||
_srom_text_start = ABSOLUTE(.);
|
||||
*(.srom.literal .srom.text)
|
||||
_srom_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom1_end = ALIGN(0x8);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.WindowVectors.text : ALIGN(4)
|
||||
{
|
||||
_WindowVectors_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.WindowVectors.text))
|
||||
_WindowVectors_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram0_end = ALIGN(0x8);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.DebugExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DebugExceptionVector.literal)
|
||||
_DebugExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram1_end = ALIGN(0x8);
|
||||
} >sram1_seg :sram1_phdr
|
||||
|
||||
.DebugExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DebugExceptionVector.text))
|
||||
_DebugExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram2_end = ALIGN(0x8);
|
||||
} >sram2_seg :sram2_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram3_end = ALIGN(0x8);
|
||||
} >sram3_seg :sram3_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram4_end = ALIGN(0x8);
|
||||
} >sram4_seg :sram4_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram5_end = ALIGN(0x8);
|
||||
} >sram5_seg :sram5_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram6_end = ALIGN(0x8);
|
||||
} >sram6_seg :sram6_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram7_end = ALIGN(0x8);
|
||||
} >sram7_seg :sram7_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram8_end = ALIGN(0x8);
|
||||
} >sram8_seg :sram8_phdr
|
||||
|
||||
.sram.rodata : ALIGN(4)
|
||||
{
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
_sram_rodata_start = ABSOLUTE(.);
|
||||
*(.sram.rodata)
|
||||
_sram_rodata_end = ABSOLUTE(.);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.sram.text : ALIGN(4)
|
||||
{
|
||||
_sram_text_start = ABSOLUTE(.);
|
||||
*(.sram.literal .sram.text)
|
||||
_sram_text_end = ABSOLUTE(.);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >sram9_seg :sram9_phdr
|
||||
_image_text_end = .;
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.sram.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_sram9_end = ALIGN(0x8);
|
||||
} >sram9_seg :sram9_bss_phdr
|
||||
__stack = 0x64000000;
|
||||
_heap_sentry = 0x64000000;
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_HIFI3_BD5_CALL0
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "hifi3_bd5_call0"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 13
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_HIFI3_BD5_CALL0
|
||||
bool "hifi3_bd5_call0 (hifi3_bd5 core with call0 ABI and 3 additional SW IRQs)"
|
|
@ -1,397 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION sram9_seg :sram9_phdr
|
||||
#define ROMABLE_REGION srom1_seg :srom1_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
srom0_seg : org = 0x50000000, len = 0x2E0
|
||||
srom1_seg : org = 0x500002E0, len = 0xFFFD20
|
||||
sram0_seg : org = 0x60000000, len = 0x178
|
||||
sram1_seg : org = 0x60000178, len = 0x4
|
||||
sram2_seg : org = 0x6000017C, len = 0x1C
|
||||
sram3_seg : org = 0x60000198, len = 0x4
|
||||
sram4_seg : org = 0x6000019C, len = 0x1C
|
||||
sram5_seg : org = 0x600001B8, len = 0x4
|
||||
sram6_seg : org = 0x600001BC, len = 0x1C
|
||||
sram7_seg : org = 0x600001D8, len = 0x4
|
||||
sram8_seg : org = 0x600001DC, len = 0x1C
|
||||
sram9_seg : org = 0x600001F8, len = 0x3FFFE08
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x4fffe000, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
srom0_phdr PT_LOAD;
|
||||
srom1_phdr PT_LOAD;
|
||||
sram0_phdr PT_LOAD;
|
||||
sram1_phdr PT_LOAD;
|
||||
sram2_phdr PT_LOAD;
|
||||
sram3_phdr PT_LOAD;
|
||||
sram4_phdr PT_LOAD;
|
||||
sram5_phdr PT_LOAD;
|
||||
sram6_phdr PT_LOAD;
|
||||
sram7_phdr PT_LOAD;
|
||||
sram8_phdr PT_LOAD;
|
||||
sram9_phdr PT_LOAD;
|
||||
sram9_bss_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_srom_start = 0x50000000;
|
||||
_memmap_mem_srom_end = 0x51000000;
|
||||
_memmap_mem_sram_start = 0x60000000;
|
||||
_memmap_mem_sram_end = 0x64000000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_srom0_start = 0x50000000;
|
||||
_memmap_seg_srom0_max = 0x500002e0;
|
||||
_memmap_seg_srom1_start = 0x500002e0;
|
||||
_memmap_seg_srom1_max = 0x51000000;
|
||||
_memmap_seg_sram0_start = 0x60000000;
|
||||
_memmap_seg_sram0_max = 0x60000178;
|
||||
_memmap_seg_sram1_start = 0x60000178;
|
||||
_memmap_seg_sram1_max = 0x6000017c;
|
||||
_memmap_seg_sram2_start = 0x6000017c;
|
||||
_memmap_seg_sram2_max = 0x60000198;
|
||||
_memmap_seg_sram3_start = 0x60000198;
|
||||
_memmap_seg_sram3_max = 0x6000019c;
|
||||
_memmap_seg_sram4_start = 0x6000019c;
|
||||
_memmap_seg_sram4_max = 0x600001b8;
|
||||
_memmap_seg_sram5_start = 0x600001b8;
|
||||
_memmap_seg_sram5_max = 0x600001bc;
|
||||
_memmap_seg_sram6_start = 0x600001bc;
|
||||
_memmap_seg_sram6_max = 0x600001d8;
|
||||
_memmap_seg_sram7_start = 0x600001d8;
|
||||
_memmap_seg_sram7_max = 0x600001dc;
|
||||
_memmap_seg_sram8_start = 0x600001dc;
|
||||
_memmap_seg_sram8_max = 0x600001f8;
|
||||
_memmap_seg_sram9_start = 0x600001f8;
|
||||
_memmap_seg_sram9_max = 0x64000000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_vecbase_reset = 0x60000000);
|
||||
PROVIDE(_memmap_reset_vector = 0x50000000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00004400;
|
||||
_memmap_cacheattr_wt_base = 0x00001100;
|
||||
_memmap_cacheattr_bp_base = 0x00002200;
|
||||
_memmap_cacheattr_unused_mask = 0xFFFF00FF;
|
||||
_memmap_cacheattr_wb_trapnull = 0x2222442F;
|
||||
_memmap_cacheattr_wba_trapnull = 0x2222442F;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x2222552F;
|
||||
_memmap_cacheattr_wt_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_bp_trapnull = 0x2222222F;
|
||||
_memmap_cacheattr_wb_strict = 0xFFFF44FF;
|
||||
_memmap_cacheattr_wt_strict = 0xFFFF11FF;
|
||||
_memmap_cacheattr_bp_strict = 0xFFFF22FF;
|
||||
_memmap_cacheattr_wb_allvalid = 0x22224422;
|
||||
_memmap_cacheattr_wt_allvalid = 0x22221122;
|
||||
_memmap_cacheattr_bp_allvalid = 0x22222222;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom0_end = ALIGN(0x8);
|
||||
} >srom0_seg :srom0_phdr
|
||||
|
||||
.srom.rodata : ALIGN(4)
|
||||
{
|
||||
_srom_rodata_start = ABSOLUTE(.);
|
||||
*(.srom.rodata)
|
||||
_srom_rodata_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.srom.text : ALIGN(4)
|
||||
{
|
||||
_srom_text_start = ABSOLUTE(.);
|
||||
*(.srom.literal .srom.text)
|
||||
_srom_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom1_end = ALIGN(0x8);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.WindowVectors.text : ALIGN(4)
|
||||
{
|
||||
_WindowVectors_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.WindowVectors.text))
|
||||
_WindowVectors_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram0_end = ALIGN(0x8);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.DebugExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DebugExceptionVector.literal)
|
||||
_DebugExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram1_end = ALIGN(0x8);
|
||||
} >sram1_seg :sram1_phdr
|
||||
|
||||
.DebugExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DebugExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DebugExceptionVector.text))
|
||||
_DebugExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram2_end = ALIGN(0x8);
|
||||
} >sram2_seg :sram2_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram3_end = ALIGN(0x8);
|
||||
} >sram3_seg :sram3_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram4_end = ALIGN(0x8);
|
||||
} >sram4_seg :sram4_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram5_end = ALIGN(0x8);
|
||||
} >sram5_seg :sram5_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram6_end = ALIGN(0x8);
|
||||
} >sram6_seg :sram6_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram7_end = ALIGN(0x8);
|
||||
} >sram7_seg :sram7_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram8_end = ALIGN(0x8);
|
||||
} >sram8_seg :sram8_phdr
|
||||
|
||||
.sram.rodata : ALIGN(4)
|
||||
{
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
_sram_rodata_start = ABSOLUTE(.);
|
||||
*(.sram.rodata)
|
||||
_sram_rodata_end = ABSOLUTE(.);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.sram.text : ALIGN(4)
|
||||
{
|
||||
_sram_text_start = ABSOLUTE(.);
|
||||
*(.sram.literal .sram.text)
|
||||
_sram_text_end = ABSOLUTE(.);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >sram9_seg :sram9_phdr
|
||||
_image_text_end = .;
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.sram.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_sram9_end = ALIGN(0x8);
|
||||
} >sram9_seg :sram9_bss_phdr
|
||||
__stack = 0x64000000;
|
||||
_heap_sentry = 0x64000000;
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_HIFI4_BD7
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "hifi4_bd7"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 4
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_HIFI4_BD7
|
||||
bool "hifi4_bd7 core"
|
|
@ -1,444 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION sram13_seg :sram13_phdr
|
||||
#define ROMABLE_REGION srom1_seg :srom1_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
srom0_seg : org = 0x50000000, len = 0x300
|
||||
srom1_seg : org = 0x50000300, len = 0x1FD00
|
||||
sram0_seg : org = 0x60000000, len = 0x178
|
||||
sram1_seg : org = 0x60000178, len = 0x8
|
||||
sram2_seg : org = 0x60000180, len = 0x38
|
||||
sram3_seg : org = 0x600001B8, len = 0x8
|
||||
sram4_seg : org = 0x600001C0, len = 0x38
|
||||
sram5_seg : org = 0x600001F8, len = 0x8
|
||||
sram6_seg : org = 0x60000200, len = 0x38
|
||||
sram7_seg : org = 0x60000238, len = 0x8
|
||||
sram8_seg : org = 0x60000240, len = 0x38
|
||||
sram9_seg : org = 0x60000278, len = 0x8
|
||||
sram10_seg : org = 0x60000280, len = 0x38
|
||||
sram11_seg : org = 0x600002B8, len = 0x48
|
||||
sram12_seg : org = 0x60000300, len = 0x40
|
||||
sram13_seg : org = 0x60000340, len = 0x3FFCC0
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x4fffe000, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
srom0_phdr PT_LOAD;
|
||||
srom1_phdr PT_LOAD;
|
||||
sram0_phdr PT_LOAD;
|
||||
sram1_phdr PT_LOAD;
|
||||
sram2_phdr PT_LOAD;
|
||||
sram3_phdr PT_LOAD;
|
||||
sram4_phdr PT_LOAD;
|
||||
sram5_phdr PT_LOAD;
|
||||
sram6_phdr PT_LOAD;
|
||||
sram7_phdr PT_LOAD;
|
||||
sram8_phdr PT_LOAD;
|
||||
sram9_phdr PT_LOAD;
|
||||
sram10_phdr PT_LOAD;
|
||||
sram11_phdr PT_LOAD;
|
||||
sram12_phdr PT_LOAD;
|
||||
sram13_phdr PT_LOAD;
|
||||
sram13_bss_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_srom_start = 0x50000000;
|
||||
_memmap_mem_srom_end = 0x50020000;
|
||||
_memmap_mem_sram_start = 0x60000000;
|
||||
_memmap_mem_sram_end = 0x60400000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_srom0_start = 0x50000000;
|
||||
_memmap_seg_srom0_max = 0x50000300;
|
||||
_memmap_seg_srom1_start = 0x50000300;
|
||||
_memmap_seg_srom1_max = 0x50020000;
|
||||
_memmap_seg_sram0_start = 0x60000000;
|
||||
_memmap_seg_sram0_max = 0x60000178;
|
||||
_memmap_seg_sram1_start = 0x60000178;
|
||||
_memmap_seg_sram1_max = 0x60000180;
|
||||
_memmap_seg_sram2_start = 0x60000180;
|
||||
_memmap_seg_sram2_max = 0x600001b8;
|
||||
_memmap_seg_sram3_start = 0x600001b8;
|
||||
_memmap_seg_sram3_max = 0x600001c0;
|
||||
_memmap_seg_sram4_start = 0x600001c0;
|
||||
_memmap_seg_sram4_max = 0x600001f8;
|
||||
_memmap_seg_sram5_start = 0x600001f8;
|
||||
_memmap_seg_sram5_max = 0x60000200;
|
||||
_memmap_seg_sram6_start = 0x60000200;
|
||||
_memmap_seg_sram6_max = 0x60000238;
|
||||
_memmap_seg_sram7_start = 0x60000238;
|
||||
_memmap_seg_sram7_max = 0x60000240;
|
||||
_memmap_seg_sram8_start = 0x60000240;
|
||||
_memmap_seg_sram8_max = 0x60000278;
|
||||
_memmap_seg_sram9_start = 0x60000278;
|
||||
_memmap_seg_sram9_max = 0x60000280;
|
||||
_memmap_seg_sram10_start = 0x60000280;
|
||||
_memmap_seg_sram10_max = 0x600002b8;
|
||||
_memmap_seg_sram11_start = 0x600002b8;
|
||||
_memmap_seg_sram11_max = 0x60000300;
|
||||
_memmap_seg_sram12_start = 0x60000300;
|
||||
_memmap_seg_sram12_max = 0x60000340;
|
||||
_memmap_seg_sram13_start = 0x60000340;
|
||||
_memmap_seg_sram13_max = 0x60400000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_reset_vector = 0x50000000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00004400;
|
||||
_memmap_cacheattr_wt_base = 0x00001100;
|
||||
_memmap_cacheattr_bp_base = 0x00002200;
|
||||
_memmap_cacheattr_unused_mask = 0xFFFF00FF;
|
||||
_memmap_cacheattr_wb_trapnull = 0x2222442F;
|
||||
_memmap_cacheattr_wba_trapnull = 0x2222442F;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x2222552F;
|
||||
_memmap_cacheattr_wt_trapnull = 0x2222112F;
|
||||
_memmap_cacheattr_bp_trapnull = 0x2222222F;
|
||||
_memmap_cacheattr_wb_strict = 0xFFFF44FF;
|
||||
_memmap_cacheattr_wt_strict = 0xFFFF11FF;
|
||||
_memmap_cacheattr_bp_strict = 0xFFFF22FF;
|
||||
_memmap_cacheattr_wb_allvalid = 0x22224422;
|
||||
_memmap_cacheattr_wt_allvalid = 0x22221122;
|
||||
_memmap_cacheattr_bp_allvalid = 0x22222222;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom0_end = ALIGN(0x8);
|
||||
} >srom0_seg :srom0_phdr
|
||||
|
||||
.srom.rodata : ALIGN(4)
|
||||
{
|
||||
_srom_rodata_start = ABSOLUTE(.);
|
||||
*(.srom.rodata)
|
||||
_srom_rodata_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.srom.text : ALIGN(4)
|
||||
{
|
||||
_srom_text_start = ABSOLUTE(.);
|
||||
*(.srom.literal .srom.text)
|
||||
_srom_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_srom1_end = ALIGN(0x8);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >srom1_seg :srom1_phdr
|
||||
|
||||
.WindowVectors.text : ALIGN(4)
|
||||
{
|
||||
_WindowVectors_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.WindowVectors.text))
|
||||
_WindowVectors_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram0_end = ALIGN(0x8);
|
||||
} >sram0_seg :sram0_phdr
|
||||
|
||||
.Level2InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level2InterruptVector.literal)
|
||||
_Level2InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram1_end = ALIGN(0x8);
|
||||
} >sram1_seg :sram1_phdr
|
||||
|
||||
.Level2InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level2InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level2InterruptVector.text))
|
||||
_Level2InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram2_end = ALIGN(0x8);
|
||||
} >sram2_seg :sram2_phdr
|
||||
|
||||
.Level3InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level3InterruptVector.literal)
|
||||
_Level3InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram3_end = ALIGN(0x8);
|
||||
} >sram3_seg :sram3_phdr
|
||||
|
||||
.Level3InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level3InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level3InterruptVector.text))
|
||||
_Level3InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram4_end = ALIGN(0x8);
|
||||
} >sram4_seg :sram4_phdr
|
||||
|
||||
.Level4InterruptVector.literal : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_literal_start = ABSOLUTE(.);
|
||||
*(.Level4InterruptVector.literal)
|
||||
_Level4InterruptVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram5_end = ALIGN(0x8);
|
||||
} >sram5_seg :sram5_phdr
|
||||
|
||||
.Level4InterruptVector.text : ALIGN(4)
|
||||
{
|
||||
_Level4InterruptVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.Level4InterruptVector.text))
|
||||
_Level4InterruptVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram6_end = ALIGN(0x8);
|
||||
} >sram6_seg :sram6_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram7_end = ALIGN(0x8);
|
||||
} >sram7_seg :sram7_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram8_end = ALIGN(0x8);
|
||||
} >sram8_seg :sram8_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram9_end = ALIGN(0x8);
|
||||
} >sram9_seg :sram9_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram10_end = ALIGN(0x8);
|
||||
} >sram10_seg :sram10_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram11_end = ALIGN(0x8);
|
||||
} >sram11_seg :sram11_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_sram12_end = ALIGN(0x8);
|
||||
} >sram12_seg :sram12_phdr
|
||||
|
||||
.sram.rodata : ALIGN(4)
|
||||
{
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
_sram_rodata_start = ABSOLUTE(.);
|
||||
*(.sram.rodata)
|
||||
_sram_rodata_end = ABSOLUTE(.);
|
||||
} >sram13_seg :sram13_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >sram13_seg :sram13_phdr
|
||||
|
||||
.sram.text : ALIGN(4)
|
||||
{
|
||||
_sram_text_start = ABSOLUTE(.);
|
||||
*(.sram.literal .sram.text)
|
||||
_sram_text_end = ABSOLUTE(.);
|
||||
} >sram13_seg :sram13_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >sram13_seg :sram13_phdr
|
||||
_image_text_end = .;
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >sram13_seg :sram13_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >sram13_seg :sram13_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >sram13_seg :sram13_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.sram.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_sram13_end = ALIGN(0x8);
|
||||
} >sram13_seg :sram13_bss_phdr
|
||||
__stack = 0x60400000;
|
||||
_heap_sentry = 0x60400000;
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_HIFI_MINI
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "hifi_mini"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 13
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_HIFI_MINI
|
||||
bool "hifi_mini core"
|
|
@ -1,369 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION dram0_0_seg :dram0_0_phdr
|
||||
#define ROMABLE_REGION iram0_7_seg :iram0_7_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dram0_0_seg : org = 0x60000000, len = 0x20000
|
||||
iram0_0_seg : org = 0x60020000, len = 0x2E0
|
||||
iram0_1_seg : org = 0x600202E0, len = 0x4
|
||||
iram0_2_seg : org = 0x600202E4, len = 0x1C
|
||||
iram0_3_seg : org = 0x60020300, len = 0x4
|
||||
iram0_4_seg : org = 0x60020304, len = 0x1C
|
||||
iram0_5_seg : org = 0x60020320, len = 0x4
|
||||
iram0_6_seg : org = 0x60020324, len = 0x1C
|
||||
iram0_7_seg : org = 0x60020340, len = 0x1FCC0
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x5fffe000, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
dram0_0_phdr PT_LOAD;
|
||||
dram0_0_bss_phdr PT_LOAD;
|
||||
iram0_0_phdr PT_LOAD;
|
||||
iram0_1_phdr PT_LOAD;
|
||||
iram0_2_phdr PT_LOAD;
|
||||
iram0_3_phdr PT_LOAD;
|
||||
iram0_4_phdr PT_LOAD;
|
||||
iram0_5_phdr PT_LOAD;
|
||||
iram0_6_phdr PT_LOAD;
|
||||
iram0_7_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_dram0_start = 0x60000000;
|
||||
_memmap_mem_dram0_end = 0x60020000;
|
||||
_memmap_mem_iram0_start = 0x60020000;
|
||||
_memmap_mem_iram0_end = 0x60040000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_dram0_0_start = 0x60000000;
|
||||
_memmap_seg_dram0_0_max = 0x60020000;
|
||||
_memmap_seg_iram0_0_start = 0x60020000;
|
||||
_memmap_seg_iram0_0_max = 0x600202e0;
|
||||
_memmap_seg_iram0_1_start = 0x600202e0;
|
||||
_memmap_seg_iram0_1_max = 0x600202e4;
|
||||
_memmap_seg_iram0_2_start = 0x600202e4;
|
||||
_memmap_seg_iram0_2_max = 0x60020300;
|
||||
_memmap_seg_iram0_3_start = 0x60020300;
|
||||
_memmap_seg_iram0_3_max = 0x60020304;
|
||||
_memmap_seg_iram0_4_start = 0x60020304;
|
||||
_memmap_seg_iram0_4_max = 0x60020320;
|
||||
_memmap_seg_iram0_5_start = 0x60020320;
|
||||
_memmap_seg_iram0_5_max = 0x60020324;
|
||||
_memmap_seg_iram0_6_start = 0x60020324;
|
||||
_memmap_seg_iram0_6_max = 0x60020340;
|
||||
_memmap_seg_iram0_7_start = 0x60020340;
|
||||
_memmap_seg_iram0_7_max = 0x60040000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_reset_vector = 0x60020000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00001000;
|
||||
_memmap_cacheattr_wt_base = 0x00001000;
|
||||
_memmap_cacheattr_bp_base = 0x00002000;
|
||||
_memmap_cacheattr_unused_mask = 0xFFFF0FFF;
|
||||
_memmap_cacheattr_wb_trapnull = 0x2222122F;
|
||||
_memmap_cacheattr_wba_trapnull = 0x2222122F;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x2222122F;
|
||||
_memmap_cacheattr_wt_trapnull = 0x2222122F;
|
||||
_memmap_cacheattr_bp_trapnull = 0x2222222F;
|
||||
_memmap_cacheattr_wb_strict = 0xFFFF1FFF;
|
||||
_memmap_cacheattr_wt_strict = 0xFFFF1FFF;
|
||||
_memmap_cacheattr_bp_strict = 0xFFFF2FFF;
|
||||
_memmap_cacheattr_wb_allvalid = 0x22221222;
|
||||
_memmap_cacheattr_wt_allvalid = 0x22221222;
|
||||
_memmap_cacheattr_bp_allvalid = 0x22222222;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.dram0.rodata : ALIGN(4)
|
||||
{
|
||||
_dram0_rodata_start = ABSOLUTE(.);
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
*(.dram0.rodata)
|
||||
*(.dram.rodata)
|
||||
_dram0_rodata_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.literal : ALIGN(4)
|
||||
{
|
||||
_dram0_literal_start = ABSOLUTE(.);
|
||||
*(.dram0.literal)
|
||||
*(.dram.literal)
|
||||
_dram0_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.ResetVector.literal : ALIGN(4)
|
||||
{
|
||||
_ResetVector_literal_start = ABSOLUTE(.);
|
||||
*(.ResetVector.literal)
|
||||
_ResetVector_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.data : ALIGN(4)
|
||||
{
|
||||
_dram0_data_start = ABSOLUTE(.);
|
||||
*(.dram0.data)
|
||||
*(.dram.data)
|
||||
_dram0_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.dram0.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_dram0_0_end = ALIGN(0x8);
|
||||
} >dram0_0_seg :dram0_0_bss_phdr
|
||||
__stack = 0x60020000;
|
||||
_heap_sentry = 0x60020000;
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_0_end = ALIGN(0x8);
|
||||
} >iram0_0_seg :iram0_0_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_1_end = ALIGN(0x8);
|
||||
} >iram0_1_seg :iram0_1_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_2_end = ALIGN(0x8);
|
||||
} >iram0_2_seg :iram0_2_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_3_end = ALIGN(0x8);
|
||||
} >iram0_3_seg :iram0_3_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_4_end = ALIGN(0x8);
|
||||
} >iram0_4_seg :iram0_4_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_5_end = ALIGN(0x8);
|
||||
} >iram0_5_seg :iram0_5_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_6_end = ALIGN(0x8);
|
||||
} >iram0_6_seg :iram0_6_phdr
|
||||
|
||||
.iram0.text : ALIGN(4)
|
||||
{
|
||||
_iram0_text_start = ABSOLUTE(.);
|
||||
*(.iram0.literal .iram.literal .iram.text.literal .iram0.text .iram.text)
|
||||
_iram0_text_end = ABSOLUTE(.);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >iram0_7_seg :iram0_7_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >iram0_7_seg :iram0_7_phdr
|
||||
_image_text_end = .;
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
# Kconfig - XTENSA board configuration
|
||||
#
|
||||
# Copyright (c) 2016 Open-RnD Sp. z o.o.
|
||||
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_HIFI_MINI_4SWIRQ
|
||||
|
||||
config SOC
|
||||
string
|
||||
default "hifi_mini_4swIrq"
|
||||
|
||||
config IRQ_OFFLOAD_INTNUM
|
||||
default 1
|
||||
|
||||
endif
|
|
@ -1,5 +0,0 @@
|
|||
# Copyright (c) 2017 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_HIFI_MINI_4SWIRQ
|
||||
bool "hifi_mini_4swIrq (hifi_mini core with 4 additional SW IRQs)"
|
|
@ -1,369 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2016 Cadence Design Systems, Inc.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Linker command/script file
|
||||
*
|
||||
* Linker script for the Xtensa platform.
|
||||
*/
|
||||
|
||||
#define _LINKER
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <autoconf.h>
|
||||
#include <linker/sections.h>
|
||||
|
||||
#include <linker/linker-defs.h>
|
||||
#include <linker/linker-tool.h>
|
||||
|
||||
#define RAMABLE_REGION sram0_0_seg :sram0_0_phdr
|
||||
#define ROMABLE_REGION srom1_seg :srom1_phdr
|
||||
|
||||
MEMORY
|
||||
{
|
||||
dram0_0_seg : org = 0x60000000, len = 0x20000
|
||||
iram0_0_seg : org = 0x60020000, len = 0x2E0
|
||||
iram0_1_seg : org = 0x600202E0, len = 0x4
|
||||
iram0_2_seg : org = 0x600202E4, len = 0x1C
|
||||
iram0_3_seg : org = 0x60020300, len = 0x4
|
||||
iram0_4_seg : org = 0x60020304, len = 0x1C
|
||||
iram0_5_seg : org = 0x60020320, len = 0x4
|
||||
iram0_6_seg : org = 0x60020324, len = 0x1C
|
||||
iram0_7_seg : org = 0x60020340, len = 0x1FCC0
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
IDT_LIST : org = 0x5fffe000, len = 0x2000
|
||||
#endif
|
||||
}
|
||||
|
||||
PHDRS
|
||||
{
|
||||
dram0_0_phdr PT_LOAD;
|
||||
dram0_0_bss_phdr PT_LOAD;
|
||||
iram0_0_phdr PT_LOAD;
|
||||
iram0_1_phdr PT_LOAD;
|
||||
iram0_2_phdr PT_LOAD;
|
||||
iram0_3_phdr PT_LOAD;
|
||||
iram0_4_phdr PT_LOAD;
|
||||
iram0_5_phdr PT_LOAD;
|
||||
iram0_6_phdr PT_LOAD;
|
||||
iram0_7_phdr PT_LOAD;
|
||||
}
|
||||
|
||||
|
||||
/* Default entry point: */
|
||||
ENTRY(CONFIG_KERNEL_ENTRY)
|
||||
|
||||
/* Memory boundary addresses: */
|
||||
_memmap_mem_dram0_start = 0x60000000;
|
||||
_memmap_mem_dram0_end = 0x60020000;
|
||||
_memmap_mem_iram0_start = 0x60020000;
|
||||
_memmap_mem_iram0_end = 0x60040000;
|
||||
|
||||
/* Memory segment boundary addresses: */
|
||||
_memmap_seg_dram0_0_start = 0x60000000;
|
||||
_memmap_seg_dram0_0_max = 0x60020000;
|
||||
_memmap_seg_iram0_0_start = 0x60020000;
|
||||
_memmap_seg_iram0_0_max = 0x600202e0;
|
||||
_memmap_seg_iram0_1_start = 0x600202e0;
|
||||
_memmap_seg_iram0_1_max = 0x600202e4;
|
||||
_memmap_seg_iram0_2_start = 0x600202e4;
|
||||
_memmap_seg_iram0_2_max = 0x60020300;
|
||||
_memmap_seg_iram0_3_start = 0x60020300;
|
||||
_memmap_seg_iram0_3_max = 0x60020304;
|
||||
_memmap_seg_iram0_4_start = 0x60020304;
|
||||
_memmap_seg_iram0_4_max = 0x60020320;
|
||||
_memmap_seg_iram0_5_start = 0x60020320;
|
||||
_memmap_seg_iram0_5_max = 0x60020324;
|
||||
_memmap_seg_iram0_6_start = 0x60020324;
|
||||
_memmap_seg_iram0_6_max = 0x60020340;
|
||||
_memmap_seg_iram0_7_start = 0x60020340;
|
||||
_memmap_seg_iram0_7_max = 0x60040000;
|
||||
|
||||
_rom_store_table = 0;
|
||||
PROVIDE(_memmap_reset_vector = 0x60020000);
|
||||
/* Various memory-map dependent cache attribute settings: */
|
||||
_memmap_cacheattr_wb_base = 0x00001000;
|
||||
_memmap_cacheattr_wt_base = 0x00001000;
|
||||
_memmap_cacheattr_bp_base = 0x00002000;
|
||||
_memmap_cacheattr_unused_mask = 0xFFFF0FFF;
|
||||
_memmap_cacheattr_wb_trapnull = 0x2222122F;
|
||||
_memmap_cacheattr_wba_trapnull = 0x2222122F;
|
||||
_memmap_cacheattr_wbna_trapnull = 0x2222122F;
|
||||
_memmap_cacheattr_wt_trapnull = 0x2222122F;
|
||||
_memmap_cacheattr_bp_trapnull = 0x2222222F;
|
||||
_memmap_cacheattr_wb_strict = 0xFFFF1FFF;
|
||||
_memmap_cacheattr_wt_strict = 0xFFFF1FFF;
|
||||
_memmap_cacheattr_bp_strict = 0xFFFF2FFF;
|
||||
_memmap_cacheattr_wb_allvalid = 0x22221222;
|
||||
_memmap_cacheattr_wt_allvalid = 0x22221222;
|
||||
_memmap_cacheattr_bp_allvalid = 0x22222222;
|
||||
PROVIDE(_memmap_cacheattr_reset = _memmap_cacheattr_wb_trapnull);
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
|
||||
#include <linker/rel-sections.ld>
|
||||
|
||||
.dram0.rodata : ALIGN(4)
|
||||
{
|
||||
_dram0_rodata_start = ABSOLUTE(.);
|
||||
_image_ram_start = ABSOLUTE(.);
|
||||
*(.dram0.rodata)
|
||||
*(.dram.rodata)
|
||||
_dram0_rodata_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
#include <linker/common-rom.ld>
|
||||
|
||||
.rodata : ALIGN(4)
|
||||
{
|
||||
_rodata_start = ABSOLUTE(.);
|
||||
*(.rodata)
|
||||
*(.rodata.*)
|
||||
*(.gnu.linkonce.r.*)
|
||||
*(.rodata1)
|
||||
__XT_EXCEPTION_TABLE__ = ABSOLUTE(.);
|
||||
KEEP (*(.xt_except_table))
|
||||
KEEP (*(.gcc_except_table))
|
||||
*(.gnu.linkonce.e.*)
|
||||
*(.gnu.version_r)
|
||||
KEEP (*(.eh_frame))
|
||||
/* C++ constructor and destructor tables, properly ordered: */
|
||||
KEEP (*crtbegin.o(.ctors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors))
|
||||
KEEP (*(SORT(.ctors.*)))
|
||||
KEEP (*(.ctors))
|
||||
KEEP (*crtbegin.o(.dtors))
|
||||
KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors))
|
||||
KEEP (*(SORT(.dtors.*)))
|
||||
KEEP (*(.dtors))
|
||||
/* C++ exception handlers table: */
|
||||
__XT_EXCEPTION_DESCS__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc)
|
||||
*(.gnu.linkonce.h.*)
|
||||
__XT_EXCEPTION_DESCS_END__ = ABSOLUTE(.);
|
||||
*(.xt_except_desc_end)
|
||||
*(.dynamic)
|
||||
*(.gnu.version_d)
|
||||
. = ALIGN(4); /* this table MUST be 4-byte aligned */
|
||||
_bss_table_start = ABSOLUTE(.);
|
||||
LONG(_bss_start)
|
||||
LONG(_bss_end)
|
||||
_bss_table_end = ABSOLUTE(.);
|
||||
_rodata_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.literal : ALIGN(4)
|
||||
{
|
||||
_dram0_literal_start = ABSOLUTE(.);
|
||||
*(.dram0.literal)
|
||||
*(.dram.literal)
|
||||
_dram0_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.ResetVector.literal : ALIGN(4)
|
||||
{
|
||||
_ResetVector_literal_start = ABSOLUTE(.);
|
||||
*(.ResetVector.literal)
|
||||
_ResetVector_literal_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.dram0.data : ALIGN(4)
|
||||
{
|
||||
_dram0_data_start = ABSOLUTE(.);
|
||||
*(.dram0.data)
|
||||
*(.dram.data)
|
||||
_dram0_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.sram.data : ALIGN(4)
|
||||
{
|
||||
_sram_data_start = ABSOLUTE(.);
|
||||
*(.sram.data)
|
||||
_sram_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.noinit : ALIGN(4)
|
||||
{
|
||||
*(.noinit)
|
||||
*(.noinit.*)
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
.data : ALIGN(4)
|
||||
{
|
||||
_data_start = ABSOLUTE(.);
|
||||
*(.data)
|
||||
*(.data.*)
|
||||
*(.gnu.linkonce.d.*)
|
||||
KEEP(*(.gnu.linkonce.d.*personality*))
|
||||
*(.data1)
|
||||
*(.sdata)
|
||||
*(.sdata.*)
|
||||
*(.gnu.linkonce.s.*)
|
||||
*(.sdata2)
|
||||
*(.sdata2.*)
|
||||
*(.gnu.linkonce.s2.*)
|
||||
KEEP(*(.jcr))
|
||||
_data_end = ABSOLUTE(.);
|
||||
} >dram0_0_seg :dram0_0_phdr
|
||||
|
||||
#include <linker/common-ram.ld>
|
||||
|
||||
.bss (NOLOAD) : ALIGN(8)
|
||||
{
|
||||
. = ALIGN (8);
|
||||
_bss_start = ABSOLUTE(.);
|
||||
*(.dynsbss)
|
||||
*(.sbss)
|
||||
*(.sbss.*)
|
||||
*(.gnu.linkonce.sb.*)
|
||||
*(.scommon)
|
||||
*(.sbss2)
|
||||
*(.sbss2.*)
|
||||
*(.gnu.linkonce.sb2.*)
|
||||
*(.dynbss)
|
||||
*(.bss)
|
||||
*(.bss.*)
|
||||
*(.gnu.linkonce.b.*)
|
||||
*(COMMON)
|
||||
*(.dram0.bss)
|
||||
. = ALIGN (8);
|
||||
_bss_end = ABSOLUTE(.);
|
||||
_end = ALIGN(0x8);
|
||||
_image_ram_end = ABSOLUTE(.);
|
||||
PROVIDE(end = ALIGN(0x8));
|
||||
_stack_sentry = ALIGN(0x8);
|
||||
_memmap_seg_dram0_0_end = ALIGN(0x8);
|
||||
} >dram0_0_seg :dram0_0_bss_phdr
|
||||
__stack = 0x60020000;
|
||||
_heap_sentry = 0x60020000;
|
||||
|
||||
.ResetVector.text : ALIGN(4)
|
||||
{
|
||||
_image_rom_start = ABSOLUTE(.);
|
||||
_ResetVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.ResetVector.text))
|
||||
_ResetVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_0_end = ALIGN(0x8);
|
||||
} >iram0_0_seg :iram0_0_phdr
|
||||
|
||||
.KernelExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.KernelExceptionVector.literal)
|
||||
_KernelExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_1_end = ALIGN(0x8);
|
||||
} >iram0_1_seg :iram0_1_phdr
|
||||
|
||||
.KernelExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_KernelExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.KernelExceptionVector.text))
|
||||
_KernelExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_2_end = ALIGN(0x8);
|
||||
} >iram0_2_seg :iram0_2_phdr
|
||||
|
||||
.UserExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.UserExceptionVector.literal)
|
||||
_UserExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_3_end = ALIGN(0x8);
|
||||
} >iram0_3_seg :iram0_3_phdr
|
||||
|
||||
.UserExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_UserExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.UserExceptionVector.text))
|
||||
_UserExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_4_end = ALIGN(0x8);
|
||||
} >iram0_4_seg :iram0_4_phdr
|
||||
|
||||
.DoubleExceptionVector.literal : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_literal_start = ABSOLUTE(.);
|
||||
*(.DoubleExceptionVector.literal)
|
||||
_DoubleExceptionVector_literal_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_5_end = ALIGN(0x8);
|
||||
} >iram0_5_seg :iram0_5_phdr
|
||||
|
||||
.DoubleExceptionVector.text : ALIGN(4)
|
||||
{
|
||||
_DoubleExceptionVector_text_start = ABSOLUTE(.);
|
||||
KEEP (*(.DoubleExceptionVector.text))
|
||||
_DoubleExceptionVector_text_end = ABSOLUTE(.);
|
||||
_memmap_seg_iram0_6_end = ALIGN(0x8);
|
||||
} >iram0_6_seg :iram0_6_phdr
|
||||
|
||||
.iram0.text : ALIGN(4)
|
||||
{
|
||||
_iram0_text_start = ABSOLUTE(.);
|
||||
*(.iram0.literal .iram.literal .iram.text.literal .iram0.text .iram.text)
|
||||
_iram0_text_end = ABSOLUTE(.);
|
||||
_image_rom_end = ABSOLUTE(.);
|
||||
} >iram0_7_seg :iram0_7_phdr
|
||||
|
||||
_image_text_start = ALIGN(4);
|
||||
.text : ALIGN(4)
|
||||
{
|
||||
_stext = .;
|
||||
_text_start = ABSOLUTE(.);
|
||||
*(.entry.text)
|
||||
*(.init.literal)
|
||||
KEEP(*(.init))
|
||||
*(.literal .text .literal.* .text.* .stub .gnu.warning .gnu.linkonce.literal.* .gnu.linkonce.t.*.literal .gnu.linkonce.t.*)
|
||||
*(.fini.literal)
|
||||
KEEP(*(.fini))
|
||||
*(.gnu.version)
|
||||
_text_end = ABSOLUTE(.);
|
||||
_etext = .;
|
||||
} >iram0_7_seg :iram0_7_phdr
|
||||
_image_text_end = .;
|
||||
.comment 0 : { *(.comment) }
|
||||
.debug 0 : { *(.debug) }
|
||||
.line 0 : { *(.line) }
|
||||
.debug_srcinfo 0 : { *(.debug_srcinfo) }
|
||||
.debug_sfnames 0 : { *(.debug_sfnames) }
|
||||
.debug_aranges 0 : { *(.debug_aranges) }
|
||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
||||
.debug_info 0 : { *(.debug_info) }
|
||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
||||
.debug_line 0 : { *(.debug_line) }
|
||||
.debug_frame 0 : { *(.debug_frame) }
|
||||
.debug_str 0 : { *(.debug_str) }
|
||||
.debug_loc 0 : { *(.debug_loc) }
|
||||
.debug_macinfo 0 : { *(.debug_macinfo) }
|
||||
.debug_weaknames 0 : { *(.debug_weaknames) }
|
||||
.debug_funcnames 0 : { *(.debug_funcnames) }
|
||||
.debug_typenames 0 : { *(.debug_typenames) }
|
||||
.debug_varnames 0 : { *(.debug_varnames) }
|
||||
.debug_ranges 0 : { *(.debug_ranges) }
|
||||
.xtensa.info 0 : { *(.xtensa.info) }
|
||||
.xt.insn 0 :
|
||||
{
|
||||
KEEP (*(.xt.insn))
|
||||
KEEP (*(.gnu.linkonce.x.*))
|
||||
}
|
||||
.xt.prop 0 :
|
||||
{
|
||||
KEEP (*(.xt.prop))
|
||||
KEEP (*(.xt.prop.*))
|
||||
KEEP (*(.gnu.linkonce.prop.*))
|
||||
}
|
||||
.xt.lit 0 :
|
||||
{
|
||||
KEEP (*(.xt.lit))
|
||||
KEEP (*(.xt.lit.*))
|
||||
KEEP (*(.gnu.linkonce.p.*))
|
||||
}
|
||||
.debug.xt.callgraph 0 :
|
||||
{
|
||||
KEEP (*(.debug.xt.callgraph .debug.xt.callgraph.* .gnu.linkonce.xt.callgraph.*))
|
||||
}
|
||||
#ifdef CONFIG_GEN_ISR_TABLES
|
||||
#include <linker/intlist.ld>
|
||||
#endif
|
||||
}
|
|
@ -12,9 +12,6 @@ config SOC
|
|||
config IRQ_OFFLOAD_INTNUM
|
||||
default 0
|
||||
|
||||
config XTENSA_ASM2
|
||||
default y
|
||||
|
||||
# S1000 does not have MISC0.
|
||||
# Since EXCSAVE2 is unused by Zephyr, use it instead.
|
||||
config XTENSA_KERNEL_CPU_PTR_SR
|
||||
|
|
|
@ -13,9 +13,6 @@ config SOC
|
|||
config IRQ_OFFLOAD_INTNUM
|
||||
default 7
|
||||
|
||||
config XTENSA_ASM2
|
||||
default y
|
||||
|
||||
config LOG_BACKEND_XTENSA_SIM
|
||||
default LOG
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue