[mips] Add __clear_cache() definition for non-Android systems
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 10 Feb 2015 23:36:19 +0000 (23:36 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 10 Feb 2015 23:36:19 +0000 (23:36 +0000)
commit08fc9e9158174f841b3e2360ff96fc9ca7c595ec
treed3ca2f606da03052b9da1640f0eb5ea7ac615f77
parenteb9472709817c853fcdd0e57622805f2757b4925
[mips] Add __clear_cache() definition for non-Android systems

Make sure clear_cache() builtin has an appropriate definition for Linux.
Call syscall(NR_cacheflush, ...).

Differential Revision: http://reviews.llvm.org/D7205

llvm-svn: 228767
compiler-rt/lib/builtins/clear_cache.c