Created
January 12, 2014 10:56
-
-
Save AustinDizzy/590a827ff00c67eba84c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SLJIT_CACHE_FLUSH(from, to) \ | |
void jit_clear_cache(char* from, char *to) | |
{ | |
const int syscall = 0xf0002; | |
__asm __volatile ( | |
"mov r0, %0\n" | |
"mov r1, %1\n" | |
"mov r7, %2\n" | |
"mov r2, #0x0\n" | |
"svc 0x00000000\n" | |
: | |
: "r" (from), "r" (to), "r" (syscall) | |
: "r0", "r1", "r7" | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment