summaryrefslogtreecommitdiff
path: root/bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.hxx')
-rw-r--r--bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.hxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.hxx b/bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.hxx
index fdfe65016457..ac87b8200c30 100644
--- a/bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.hxx
+++ b/bridges/source/cpp_uno/cc5_solaris_sparc64/flushcode.hxx
@@ -8,7 +8,7 @@
*
* $RCSfile: flushcode.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.3.18.1 $
*
* This file is part of OpenOffice.org.
*
@@ -34,12 +34,18 @@
#include "sal/config.h"
+extern "C" void sync_instruction_memory(caddr_t addr, int len); // from libc
+
namespace bridges { namespace cpp_uno { namespace cc5_solaris_sparc64 {
/**
* Flush a region of memory into which code has been written dynamically.
*/
-void flushCode(void const * begin, void const * end);
+inline void flushCode(void const * begin, void const * end) {
+ sync_instruction_memory(
+ static_cast< caddr_t >(const_cast< void * >(begin)),
+ static_cast< char const * >(end) - static_cast< char const * >(begin));
+}
} } }