Correct prototype: void __clear_cache(void *, void *).
This commit is contained in:
parent
a16f862cf6
commit
eafd7a7d3b
3 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
void __clear_cache(char *beg, char *end)
|
void __clear_cache(void *beg, void *end)
|
||||||
{
|
{
|
||||||
__arm64_clear_cache(beg, end);
|
__arm64_clear_cache(beg, end);
|
||||||
}
|
}
|
||||||
|
|
|
@ -721,7 +721,7 @@ void *__va_arg(__va_list_struct *ap,
|
||||||
/* Flushing for tccrun */
|
/* Flushing for tccrun */
|
||||||
#if defined(TCC_TARGET_X86_64) || defined(TCC_TARGET_I386)
|
#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 <sys/syscall.h>
|
||||||
#include <stdio.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.
|
/* __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 */
|
* However, there is no ARM asm parser in tcc so we use it for now */
|
||||||
|
|
2
tccrun.c
2
tccrun.c
|
@ -226,7 +226,7 @@ static void set_pages_executable(void *ptr, unsigned long length)
|
||||||
unsigned long old_protect;
|
unsigned long old_protect;
|
||||||
VirtualProtect(ptr, length, PAGE_EXECUTE_READWRITE, &old_protect);
|
VirtualProtect(ptr, length, PAGE_EXECUTE_READWRITE, &old_protect);
|
||||||
#else
|
#else
|
||||||
extern void __clear_cache(char *beginning, char *end);
|
extern void __clear_cache(void *beginning, void *end);
|
||||||
#ifndef PAGESIZE
|
#ifndef PAGESIZE
|
||||||
# define PAGESIZE 4096
|
# define PAGESIZE 4096
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue