Created
January 12, 2014 10:56
Revisions
-
AustinDizzy created this gist
Jan 12, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #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" ); }