Add support for the clear_cache() function for the ARM platform on FreeBSD.

Ports now compile on ARM.

PR:		194184
Submitted by:	mikael.urankar@gmail.com
Reviewed by:	kwm@
Approved by:	mentor (implicit)
This commit is contained in:
Sean Bruno 2014-12-18 17:09:44 +00:00
parent d43aa7fcf4
commit 88911013fc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374913
4 changed files with 27 additions and 1 deletions

View file

@ -4,7 +4,7 @@
PORTNAME= webkit
PORTVERSION= 1.8.3
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= www
MASTER_SITES= http://webkitgtk.org/releases/
PKGNAMESUFFIX= -gtk2

View file

@ -0,0 +1,14 @@
--- Source/JavaScriptCore/jit/ExecutableAllocator.h.orig 2014-10-15 14:25:58 UTC
+++ Source/JavaScriptCore/jit/ExecutableAllocator.h
@@ -223,6 +223,11 @@
UNUSED_PARAM(size);
#endif
}
+#elif CPU(ARM_TRADITIONAL) && OS(FREEBSD) && COMPILER(CLANG)
+ static void cacheFlush(void* code, size_t size)
+ {
+ __clear_cache(code, reinterpret_cast<char*>(code) + size);
+ }
#else
#error "The cacheFlush support is missing on this platform."
#endif

View file

@ -4,6 +4,7 @@
PORTNAME= webkit
PORTVERSION= 2.4.7
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://webkitgtk.org/releases/
PKGNAMESUFFIX= -gtk3

View file

@ -0,0 +1,11 @@
--- Source/JavaScriptCore/assembler/ARMAssembler.h.orig 2014-12-15 04:13:43.336068961 +0000
+++ Source/JavaScriptCore/assembler/ARMAssembler.h 2014-12-15 04:13:49.213068201 +0000
@@ -1121,6 +1121,8 @@
linuxPageFlush(current, end);
#elif OS(WINCE)
CacheRangeFlush(code, size, CACHE_SYNC_ALL);
+#elif CPU(ARM_TRADITIONAL) && OS(FREEBSD) && COMPILER(CLANG)
+ __clear_cache(code, reinterpret_cast<char*>(code) + size);
#else
#error "The cacheFlush support is missing on this platform."
#endif