How to find (offending) kernel mode function references?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

How to find (offending) kernel mode function references?

Post by jockyw2001 »

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: Select all

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 ?
User avatar
blondin
Posts: 18
Joined: Tue Mar 07, 2006 12:16 am
Location: France (Grenoble)

Post by blondin »

...
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

These functions are provided by the PSP kernel, like the windows API...
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

Post by jockyw2001 »

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.
Post Reply