From eafd7a7d3b8d9e3969684216421ee77a808e1f17 Mon Sep 17 00:00:00 2001 From: Edmund Grimley Evans Date: Thu, 15 Oct 2015 19:02:54 +0100 Subject: [PATCH] Correct prototype: void __clear_cache(void *, void *). --- lib/lib-arm64.c | 2 +- lib/libtcc1.c | 4 ++-- tccrun.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/lib-arm64.c b/lib/lib-arm64.c index bff1d91a..42d5936d 100644 --- a/lib/lib-arm64.c +++ b/lib/lib-arm64.c @@ -12,7 +12,7 @@ #include #include -void __clear_cache(char *beg, char *end) +void __clear_cache(void *beg, void *end) { __arm64_clear_cache(beg, end); } diff --git a/lib/libtcc1.c b/lib/libtcc1.c index ece6413b..17e410d5 100644 --- a/lib/libtcc1.c +++ b/lib/libtcc1.c @@ -721,7 +721,7 @@ void *__va_arg(__va_list_struct *ap, /* Flushing for tccrun */ #if defined(TCC_TARGET_X86_64) || defined(TCC_TARGET_I386) -void __clear_cache(char *beginning, char *end) +void __clear_cache(void *beginning, void *end) { } @@ -732,7 +732,7 @@ void __clear_cache(char *beginning, char *end) #include #include -void __clear_cache(char *beginning, char *end) +void __clear_cache(void *beginning, void *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 */ diff --git a/tccrun.c b/tccrun.c index 55db3109..f348e486 100644 --- a/tccrun.c +++ b/tccrun.c @@ -226,7 +226,7 @@ static void set_pages_executable(void *ptr, unsigned long length) unsigned long old_protect; VirtualProtect(ptr, length, PAGE_EXECUTE_READWRITE, &old_protect); #else - extern void __clear_cache(char *beginning, char *end); + extern void __clear_cache(void *beginning, void *end); #ifndef PAGESIZE # define PAGESIZE 4096 #endif