smc_debug_mem has been used as shared memory between
SWd and NWd. Therefore, Kernel needs to invalidate
this memory before reading it.
Change-Id: I0d99ebf681bfee97dc8bf96067a4d90e37960d98
Signed-off-by: Junho Choi <junhosj.choi@samsung.com>
if ((offset > 0x0 && offset < (PAGE_SIZE * 2))
&& !(offset % 0x8) && (smc_debug_mem)) {
+
+ /* Invalidate smc_debug_mem for cache coherency */
+ __inval_dcache_area(smc_debug_mem, PAGE_SIZE * 2);
+
tmp = (unsigned long)smc_debug_mem;
tmp += (unsigned long)offset;
ptr = (unsigned long *)tmp;