summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/tms570/include
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2015-11-12 23:11:31 +0100
committerGedare Bloom <gedare@rtems.org>2015-11-18 10:19:01 -0500
commit416cd88ac0ae8d171b1cd004810539ac9317520d (patch)
tree15254d97eeee623d4a1585527d880394dbce0381 /c/src/lib/libbsp/arm/tms570/include
parentbsp/tms570: updated reserved space for vector overlay in internal RAM (diff)
downloadrtems-416cd88ac0ae8d171b1cd004810539ac9317520d.tar.bz2
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 <pisa@cmp.felk.cvut.cz> Signed-off-by: Premysl Houdek <kom541000@gmail.com>
Diffstat (limited to 'c/src/lib/libbsp/arm/tms570/include')
-rw-r--r--c/src/lib/libbsp/arm/tms570/include/tms570-pom.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/arm/tms570/include/tms570-pom.h b/c/src/lib/libbsp/arm/tms570/include/tms570-pom.h
index 215d608d6f..2c54a016dc 100644
--- a/c/src/lib/libbsp/arm/tms570/include/tms570-pom.h
+++ b/c/src/lib/libbsp/arm/tms570/include/tms570-pom.h
@@ -48,8 +48,7 @@ extern "C" {
#define TMS570_POM_REGADDRMASK ((1<<23)-1)
-
-int mem_dump(void *buf, unsigned long start, unsigned long len, int blen);
+void tms570_initialize_and_clear(void);
void tms570_pom_remap(void);
/** @} */