Correct prototype: void __clear_cache(void *, void *).

master
Edmund Grimley Evans 2015-10-15 19:02:54 +01:00
parent a16f862cf6
commit eafd7a7d3b
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
#include <stdint.h>
#include <string.h>
void __clear_cache(char *beg, char *end)
void __clear_cache(void *beg, void *end)
{
__arm64_clear_cache(beg, end);
}

View File

@ -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 <sys/syscall.h>
#include <stdio.h>
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 */

View File

@ -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