svn commit: r243955 - projects/bpfjit/sys/contrib/sljit
Jung-uk Kim
jkim at FreeBSD.org
Thu Dec 6 18:51:19 UTC 2012
Author: jkim
Date: Thu Dec 6 18:51:18 2012
New Revision: 243955
URL: http://svnweb.freebsd.org/changeset/base/243955
Log:
Add comments about possible non-X86 issues.
Modified:
projects/bpfjit/sys/contrib/sljit/sljitConfig.h
Modified: projects/bpfjit/sys/contrib/sljit/sljitConfig.h
==============================================================================
--- projects/bpfjit/sys/contrib/sljit/sljitConfig.h Thu Dec 6 18:41:53 2012 (r243954)
+++ projects/bpfjit/sys/contrib/sljit/sljitConfig.h Thu Dec 6 18:51:18 2012 (r243955)
@@ -50,11 +50,15 @@
#define SLJIT_VERBOSE 0
#define SLJIT_FREE(ptr) free(ptr, M_TEMP)
-#define SLJIT_FREE_EXEC(ptr) free(ptr, M_TEMP)
#define SLJIT_MALLOC(size) malloc(size, M_TEMP, M_NOWAIT)
-#define SLJIT_MALLOC_EXEC(size) malloc(size, M_TEMP, M_NOWAIT)
#define SLJIT_MEMMOVE(dest, src, len) bcopy(src, dest, len)
#define SLJIT_ZEROMEM(dest, len) bzero(dest, len)
+
+/* XXX okay for x86 but other architectures? */
+#define SLJIT_FREE_EXEC(ptr) free(ptr, M_TEMP)
+#define SLJIT_MALLOC_EXEC(size) malloc(size, M_TEMP, M_NOWAIT)
+
+/* XXX need SLJIT_CACHE_FLUSH(from, to) for non-X86 to flush icache */
#endif
/* --------------------------------------------------------------------- */
More information about the svn-src-projects
mailing list