From 40e38597391aa05a61cef1c36e844690665c411a Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 11 Mar 2014 22:57:22 +0800 Subject: [PATCH] Fix __clear_cache implementation Forgot to give the parameters to syscall function, doh! --- lib/libtcc1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libtcc1.c b/lib/libtcc1.c index 067592c..a5896a4 100644 --- a/lib/libtcc1.c +++ b/lib/libtcc1.c @@ -728,13 +728,14 @@ void __clear_cache(char *beginning, char *end) #define _GNU_SOURCE #include #include +#include void __clear_cache(char *beginning, char *end) { /* __ARM_NR_cacheflush is kernel private and should not be used in user space. * However, there is no ARM asm parser in tcc so we use it for now */ #if 1 - syscall(__ARM_NR_cacheflush); + syscall(__ARM_NR_cacheflush, beginning, end, 0); #else __asm__ ("push {r7}\n\t" "mov r7, #0xf0002\n\t"