diff options
author | Joost Peters | 2009-08-19 01:40:22 +0000 |
---|---|---|
committer | Joost Peters | 2009-08-19 01:40:22 +0000 |
commit | 2ea0df7b2e14264b828b5d7fe7e55565a6c0bfa8 (patch) | |
tree | 2960efaa7453bc5150de350ed93c89d9ec589e93 /backends/platform/psp | |
parent | 2bd1f51d92492fa88ba61dc65f783fc9bbfd852c (diff) | |
download | scummvm-rg350-2ea0df7b2e14264b828b5d7fe7e55565a6c0bfa8.tar.gz scummvm-rg350-2ea0df7b2e14264b828b5d7fe7e55565a6c0bfa8.tar.bz2 scummvm-rg350-2ea0df7b2e14264b828b5d7fe7e55565a6c0bfa8.zip |
Take advantage of extra memory on newer PSP models
svn-id: r43525
Diffstat (limited to 'backends/platform/psp')
-rw-r--r-- | backends/platform/psp/Makefile | 2 | ||||
-rw-r--r-- | backends/platform/psp/psp.mk | 2 | ||||
-rw-r--r-- | backends/platform/psp/psp_main.cpp | 9 |
3 files changed, 6 insertions, 7 deletions
diff --git a/backends/platform/psp/Makefile b/backends/platform/psp/Makefile index d18e6ac82c..64ce8a0161 100644 --- a/backends/platform/psp/Makefile +++ b/backends/platform/psp/Makefile @@ -49,7 +49,7 @@ STRIP = psp-strip MKDIR = mkdir -p RM = rm -f RM_REC = rm -rf -MKSFO = mksfo +MKSFO = mksfoex -d MEMSIZE=1 PACK_PBP = pack-pbp FIXUP = psp-fixup-imports diff --git a/backends/platform/psp/psp.mk b/backends/platform/psp/psp.mk index 10e272a593..998a420ffc 100644 --- a/backends/platform/psp/psp.mk +++ b/backends/platform/psp/psp.mk @@ -9,7 +9,7 @@ PSP_EBOOT_SFO = param.sfo PSP_EBOOT_TITLE = ScummVM-PSP DATE = $(shell date +%Y%m%d) -MKSFO = mksfo +MKSFO = mksfoex -d MEMSIZE=1 PACK_PBP = pack-pbp $(PSP_EXE_STRIPPED): $(PSP_EXE) diff --git a/backends/platform/psp/psp_main.cpp b/backends/platform/psp/psp_main.cpp index 3ea6c55368..357c502dbc 100644 --- a/backends/platform/psp/psp_main.cpp +++ b/backends/platform/psp/psp_main.cpp @@ -62,9 +62,8 @@ PSP_MODULE_INFO("SCUMMVM-PSP", 0, 1, 1); * code (crt0.c) starts this program in to be in usermode * even though the module was started in kernelmode */ -#ifndef USERSPACE_ONLY PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU); -#endif +PSP_HEAP_SIZE_KB(-128); //Leave 128kb for thread stacks, etc. #ifndef USERSPACE_ONLY @@ -142,13 +141,13 @@ int SetupCallbacks(void) { #undef main int main(void) { + //change clock rate to 333mhz + scePowerSetClockFrequency(333, 333, 166); + PowerManager::instance(); // Setup power manager SetupCallbacks(); - //change clock rate to 333mhz - scePowerSetClockFrequency(333, 333, 166); - static const char *argv[] = { "scummvm", NULL }; static int argc = sizeof(argv)/sizeof(char *)-1; |