diff options
author | tjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-07-20 14:34:44 +0000 |
---|---|---|
committer | tjw <tjw@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-07-20 14:34:44 +0000 |
commit | c7f082760f432b227277b4e1e39fc88c814d2dde (patch) | |
tree | ab4f5285a65a3148330bf71733fa850cac8e0974 /code/qcommon/vm_ppc.c | |
parent | 3f0dc06cb4e223abe59708b278d188cbde505e60 (diff) | |
download | ioquake3-aero-c7f082760f432b227277b4e1e39fc88c814d2dde.tar.gz ioquake3-aero-c7f082760f432b227277b4e1e39fc88c814d2dde.zip |
* (bug 3268) Replace Mac OS X Carbon API calls with native ones (thanks
to i3enedek).
* remove some spammy Mac OS X printf's regarding local network detection
* replaced a #warning for non-OS X PPC systems with a call to
msync(..., MS_INVALIDATE). This needs testing.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1118 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon/vm_ppc.c')
-rw-r--r-- | code/qcommon/vm_ppc.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/code/qcommon/vm_ppc.c b/code/qcommon/vm_ppc.c index f6fcc31..c0b1add 100644 --- a/code/qcommon/vm_ppc.c +++ b/code/qcommon/vm_ppc.c @@ -23,10 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // ppc dynamic compiler #include "vm_local.h" - -#ifdef MACOS_X -#include <CoreServices/CoreServices.h> -#endif +#include <sys/mman.h> #define DEBUG_VM 0 @@ -1725,12 +1722,8 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) { // go back over it in place now to fixup reletive jump targets buf = (unsigned *)vm->codeBase; } else if ( pass == 1 ) { - #ifdef MACOS_X - // On Mac OS X, the following library routine clears the instruction cache for generated code - MakeDataExecutable(vm->codeBase, vm->codeLength); - #else - #warning Need to clear the instruction cache for generated code - #endif + // clear the instruction cache for generated code + msync(vm->codeBase, vm->codeLength, MS_INVALIDATE); } } if(0) |