diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2014-03-11 22:57:22 +0800 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2014-03-11 22:57:22 +0800 |
| commit | 40e38597391aa05a61cef1c36e844690665c411a (patch) | |
| tree | a560518cf6fe739cce343e7355d019be257b4af8 /lib | |
| parent | b2192fc50bb0cfddce1585f2cb2c920de66b4e07 (diff) | |
| download | tinycc-40e38597391aa05a61cef1c36e844690665c411a.tar.gz tinycc-40e38597391aa05a61cef1c36e844690665c411a.tar.bz2 | |
Fix __clear_cache implementation
Forgot to give the parameters to syscall function, doh!
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libtcc1.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <unistd.h> #include <sys/syscall.h> +#include <stdio.h> 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" |
