forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pspdebug.h NIDS?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
accepttheownage



Joined: 18 Jun 2006
Posts: 17

PostPosted: Thu Sep 21, 2006 2:25 pm    Post subject: pspdebug.h NIDS? Reply with quote

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
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Thu Sep 21, 2006 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group