From 416cd88ac0ae8d171b1cd004810539ac9317520d Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 12 Nov 2015 23:11:31 +0100 Subject: bsp/tms570: use POM only when application image does not start at address 0. Parameters overlay module is initialized and cleared first. It is used later to replace exception target vectors only if that is required. The application loader code with CPU and SDRAM setup code has to provide well defined pattern of instructions at addresses 0x00000000 and 0x0000001f, because only data read accesses can be processed reliably by POM. The expected instruction pattern can be seen in the next example https://github.com/hornmich/tms570ls3137-hdk-sdram/blob/master/SDRAM_SCI_configuration/source/sys_intvecs.asm Comments with detailed description of code, background and reasons for selected approach have been included in TMS570 bsp startup code. Signed-off-by: Pavel Pisa Signed-off-by: Premysl Houdek --- c/src/lib/libbsp/arm/tms570/startup/linkcmds.tms570ls3137_hdk_sdram | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c/src/lib/libbsp/arm/tms570/startup/linkcmds.tms570ls3137_hdk_sdram') diff --git a/c/src/lib/libbsp/arm/tms570/startup/linkcmds.tms570ls3137_hdk_sdram b/c/src/lib/libbsp/arm/tms570/startup/linkcmds.tms570ls3137_hdk_sdram index 17039f1604..0117410467 100644 --- a/c/src/lib/libbsp/arm/tms570/startup/linkcmds.tms570ls3137_hdk_sdram +++ b/c/src/lib/libbsp/arm/tms570/startup/linkcmds.tms570ls3137_hdk_sdram @@ -27,4 +27,6 @@ REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM_EXT); bsp_stack_main_size = DEFINED (bsp_stack_main_size) ? bsp_stack_main_size : 1024; bsp_stack_main_size = ALIGN (bsp_stack_main_size, bsp_stack_align); +bsp_int_vec_overlay_start = ORIGIN(RAM_INT_VEC); + INCLUDE linkcmds.armv4 -- cgit v1.2.3