mirror of
https://github.com/frida/tinycc
synced 2024-11-28 18:43:07 +03:00
Fix __clear_cache implementation
Forgot to give the parameters to syscall function, doh!
This commit is contained in:
parent
b2192fc50b
commit
40e3859739
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user