| View previous topic :: View next topic |
| Author |
Message |
accepttheownage
Joined: 18 Jun 2006 Posts: 17
|
Posted: Thu Sep 21, 2006 2:25 pm Post subject: pspdebug.h NIDS? |
|
|
| This is getting very frustrating. I need to call a function from this header file (pspDebugInstallErrorHandler) and the only way I can do this is if I load a prx and import the function. I know how to do this and I've done it before but the problem is that every single firmware function seems to be accessible as a NID EXCEPT the one I need to use. Does anyone know which prx these debugging functions reside in? The reason I have to load it this way is because I am making a devhook module and for some reason the devhook library interferes with this function (causes compiler errors inside the pspdevkit source files). |
|
| Back to top |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Thu Sep 21, 2006 3:01 pm Post subject: |
|
|
This is because the function doesn't have an NID, but it a wrapper to some other sce* function:
| Code: | #include <pspdebug.h>
static PspDebugErrorHandler curr_handler = NULL;
void _pspDebugExceptionHandler(void);
PspDebugRegBlock _pspDebugExceptRegs;
int sceKernelRegisterDefaultExceptionHandler(void *func);
/* Install an error handler */
int pspDebugInstallErrorHandler(PspDebugErrorHandler handler)
{
u32 addr;
curr_handler = handler;
addr = (u32) _pspDebugExceptionHandler;
addr |= 0x80000000;
return sceKernelRegisterDefaultExceptionHandler((void *) addr);
} |
From:
http://svn.ps2dev.org/filedetails.php?repname=psp&path=%2Ftrunk%2Fpspsdk%2Fsrc%2Fdebug%2Fexception.c&rev=0&sc=1 |
|
| Back to top |
|
 |
|