diff options
author | Joost Peters | 2005-10-28 22:32:03 +0000 |
---|---|---|
committer | Joost Peters | 2005-10-28 22:32:03 +0000 |
commit | 316d9bb378288c9a08e0a94a684ba067567dce28 (patch) | |
tree | 457cd2bb689beed9d24d002589261cfb455a66be /backends | |
parent | eda2b6f3376513c0e36e55383f8317a5bea6578d (diff) | |
download | scummvm-rg350-316d9bb378288c9a08e0a94a684ba067567dce28.tar.gz scummvm-rg350-316d9bb378288c9a08e0a94a684ba067567dce28.tar.bz2 scummvm-rg350-316d9bb378288c9a08e0a94a684ba067567dce28.zip |
Allow easy building of userspace-only version (for firmware 2.00 EBOOT loaders)
svn-id: r19346
Diffstat (limited to 'backends')
-rw-r--r-- | backends/psp/psp_main.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/backends/psp/psp_main.cpp b/backends/psp/psp_main.cpp index cd82b494be..d5f584a6bf 100644 --- a/backends/psp/psp_main.cpp +++ b/backends/psp/psp_main.cpp @@ -38,24 +38,34 @@ #include "./trace.h" +//#define USERSPACE_ONLY + + /** * Define the module info section * * 2nd arg must 0x1000 so __init is executed in * kernelmode for our loaderInit function */ +#ifndef USERSPACE_ONLY PSP_MODULE_INFO("SCUMMVM-PSP", 0x1000, 1, 1); +#else +PSP_MODULE_INFO("SCUMMVM-PSP", 0, 1, 1); +#endif /** * THREAD_ATTR_USER causes the thread that the startup * 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 /* global quit flag, this is used to let the VM engine shutdown properly */ bool g_quit = false; +#ifndef USERSPACE_ONLY void MyExceptionHandler(PspDebugRegBlock *regs) { /* Do normal initial dump, setup screen etc */ @@ -80,7 +90,7 @@ void loaderInit() { pspKernelSetKernelPC(); pspDebugInstallErrorHandler(MyExceptionHandler); } - +#endif /* Exit callback */ SceKernelCallbackFunction exit_callback(int /*arg1*/, int /*arg2*/, void * /*common*/) { |