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 

How to find (offending) kernel mode function references?

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



Joined: 29 Sep 2005
Posts: 339

PostPosted: Wed Feb 21, 2007 11:05 am    Post subject: How to find (offending) kernel mode function references? Reply with quote

I have built a PRX which should be pure user mode and to be used on 3.x-oe firmwares. The problem is that 2 kernel mode modules are linked:
Code:
Import 21, Name KDebugForKernel, Functions 1, Variables 0, flags 00010000
Functions:
0x84F370BC [0x00278FAC] - KDebugForKernel_84F370BC (Kprintf)

Import 22, Name LoadCoreForKernel, Functions 2, Variables 0, flags 00010000
Functions:
0xD8779AC6 [0x00278FB4] - LoadCoreForKernel_D8779AC6 (sceKernelIcacheClearAll)
0xCCE4A157 [0x00278FBC] - LoadCoreForKernel_CCE4A157 (sceKernelFindModuleByUID)


I have searched my entire sourcetree (both *.c and objects *.o) for these 3 functions, but can't find any reference. I think these problems started after a pspsdk update, but I'm not sure. I'm pretty sure there is a library now containing references to these functions, but I have no clue which one.

Can anyone help please, now that I am so close to a release ?
Back to top
View user's profile Send private message
blondin



Joined: 07 Mar 2006
Posts: 18
Location: France (Grenoble)

PostPosted: Wed Feb 21, 2007 11:07 pm    Post subject: Reply with quote

...
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Thu Feb 22, 2007 2:34 am    Post subject: Reply with quote

These functions are provided by the PSP kernel, like the windows API...
Back to top
View user's profile Send private message
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Thu Feb 22, 2007 6:14 am    Post subject: Reply with quote

adrahil wrote:
These functions are provided by the PSP kernel, like the windows API...

I know that, but in none of my source files I can't find references. I can't explain these imports. How can I find out what needs them?

EDIT: I found the culprit. I used a wrong version of avc sourcefile.Entirely my fault of course.
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