diff options
author | Tony Puccinelli | 2010-06-09 04:04:34 +0000 |
---|---|---|
committer | Tony Puccinelli | 2010-06-09 04:04:34 +0000 |
commit | d6b194aaa8207e5127b7e68c7bdde780672a4647 (patch) | |
tree | 8ca40283ff8298db93f87d8479f4fb6c5480746b /backends/platform/ps2/ps2loader.cpp | |
parent | dcdebf60b052f9609e543826741fe8f845fd3257 (diff) | |
download | scummvm-rg350-d6b194aaa8207e5127b7e68c7bdde780672a4647.tar.gz scummvm-rg350-d6b194aaa8207e5127b7e68c7bdde780672a4647.tar.bz2 scummvm-rg350-d6b194aaa8207e5127b7e68c7bdde780672a4647.zip |
added tentative GDB flag to Makefile, changed calls to psp-functions to equivalent ps2-functions in ps2loader, minor rearrangement of code in systemps2
svn-id: r49530
Diffstat (limited to 'backends/platform/ps2/ps2loader.cpp')
-rw-r--r-- | backends/platform/ps2/ps2loader.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/backends/platform/ps2/ps2loader.cpp b/backends/platform/ps2/ps2loader.cpp index bea697bf07..6e38496b91 100644 --- a/backends/platform/ps2/ps2loader.cpp +++ b/backends/platform/ps2/ps2loader.cpp @@ -30,9 +30,9 @@ #include <stdio.h> #include <malloc.h> #include <unistd.h> -#include <sys/_default_fcntl.h> +#include <sys/fcntl.h> -#include <ps2utils.h> +//#include <ps2utils.h> do these exist? #include "backends/platform/ps2/ps2loader.h" //#include "backends/platform/ps2/powerman.h" //TODO @@ -552,7 +552,8 @@ bool DLObject::open(const char *path) { _gpVal = (unsigned int) & _gp; DBG("_gpVal is %x\n", _gpVal); - PowerMan.beginCriticalSection(); + //PS2 has no "PowerMan" for suspending the system. + //PowerMan.beginCriticalSection(); if ((fd = ::open(path, O_RDONLY)) < 0) { seterror("%s not found.", path); @@ -568,10 +569,12 @@ bool DLObject::open(const char *path) { ::close(fd); - PowerMan.endCriticalSection(); + //PS2 has no "PowerMan" for suspending the system. + //PowerMan.endCriticalSection(); // flush data cache - sceKernelDcacheWritebackAll(); + FlushCache(0); + FlushCache(2); // Get the symbols for the global constructors and destructors ctors_start = symbol("___plugin_ctors"); |