From 22b06a8e40d53c8440c378486bc30d6a0210bdcd Mon Sep 17 00:00:00 2001 From: Jyotheeswar Reddy Date: Sun, 12 Apr 2015 20:24:19 -0700 Subject: [PATCH] lib:xilpm:example: Use TCM-A for saving context swbeta2 commit 90e16f97eb510ea91702729bf38bc7c7d5d62dba FSBL inits the TCMs that are used by R5 Apps. We have vectors in TCM-A and that data is passed on to FSBL and it is initialized. So using the same TCM block as vectors ensures that we use an intialized memory and avoids ECC errors due to RMW or Reads of uninitialized memory locations. In JTAG mode, TCM still needs to be initialized using XSDB. Signed-off-by: Jyotheeswar Reddy --- lib/sw_services/xilpm/examples/xilpm_selfsuspend_example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sw_services/xilpm/examples/xilpm_selfsuspend_example.c b/lib/sw_services/xilpm/examples/xilpm_selfsuspend_example.c index 503a957c..837d5b7b 100644 --- a/lib/sw_services/xilpm/examples/xilpm_selfsuspend_example.c +++ b/lib/sw_services/xilpm/examples/xilpm_selfsuspend_example.c @@ -69,7 +69,7 @@ extern void *_vector_table; #define CONTEXT_MEM_BASE 0xFFFC0000U #else /* Use TCM for saving context */ - #define CONTEXT_MEM_BASE 0x20000U + #define CONTEXT_MEM_BASE 0x8000U #endif /* The below sections will be saved during suspend */