summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis2018-04-18 13:51:58 -0500
committerAndrew F. Davis2018-04-18 13:51:58 -0500
commita5c9703a823bb7c503fadfb4b273190476f73623 (patch)
tree2723c1e0e255d3e38c8d4d0a6181c067c6814bcf
parent5b2b46923b59785b6898e789fd891af1466f514e (diff)
downloaddevice-ti-proprietary-open-a5c9703a823bb7c503fadfb4b273190476f73623.tar.gz
device-ti-proprietary-open-a5c9703a823bb7c503fadfb4b273190476f73623.tar.xz
device-ti-proprietary-open-a5c9703a823bb7c503fadfb4b273190476f73623.zip
jacinto6: sgx_src: use correct cache flush API for arch
A missing #ifdef check causes us to use the aarch64 cache flush path on arm builds. Add this check. This fixes some warnings and graphical glitches. Signed-off-by: Andrew F. Davis <afd@ti.com>
-rw-r--r--jacinto6/sgx_src/eurasia_km/services4/srvkm/env/linux/osfunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jacinto6/sgx_src/eurasia_km/services4/srvkm/env/linux/osfunc.c b/jacinto6/sgx_src/eurasia_km/services4/srvkm/env/linux/osfunc.c
index 0b246af..273b490 100644
--- a/jacinto6/sgx_src/eurasia_km/services4/srvkm/env/linux/osfunc.c
+++ b/jacinto6/sgx_src/eurasia_km/services4/srvkm/env/linux/osfunc.c
@@ -4424,7 +4424,7 @@ IMG_BOOL OSInvalidateCPUCacheRangeKM(IMG_HANDLE hOSMemHandle,
4424static void per_cpu_cache_flush(void *arg) 4424static void per_cpu_cache_flush(void *arg)
4425{ 4425{
4426 PVR_UNREFERENCED_PARAMETER(arg); 4426 PVR_UNREFERENCED_PARAMETER(arg);
4427#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0)) 4427#if defined(__aarch64__) && (LINUX_VERSION_CODE >= KERNEL_VERSION(4,2,0))
4428 /* 4428 /*
4429 NOTE: Regarding arm64 global flush support on >= Linux v4.2: 4429 NOTE: Regarding arm64 global flush support on >= Linux v4.2:
4430 - Global cache flush support is deprecated from v4.2 onwards 4430 - Global cache flush support is deprecated from v4.2 onwards