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 use vshKernelLoadExecVSHMs2 ?

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



Joined: 01 May 2006
Posts: 11
Location: La Coruna - Spain

PostPosted: Thu Sep 21, 2006 7:48 am    Post subject: How to use vshKernelLoadExecVSHMs2 ? Reply with quote

Hi.

I´m developing an application that can launch some others. It run in kernel mode and, because that, i want to launch other app with kernel mode functions.

I heard about vsh functions like vshKernelLoadExecVSHMs2 and its sce equivalent sceKernelLoadExecVSHMs2. I think i have all the files i need, like "pspvshbridge.h" and "psploadexec_kernel.h", this are included in the proyect and makefile. I also fill the SceKernelLoadExecVSHParam structure which is passed to these functions but i have two results:

If i call sceKernelLoadExecVSHMs2, in spite of that function is defined in the include files listed up there, i get the error "undefined reference to sceKernelLoadExecVSHMs2" from compiler.

But, if i use vshKernelLoadExecVSHMs2 , the compilation is successful but, using psplink to execute the app, i get an error like "Can´t load module..." from pcterm command line. If i launch the application from the XMB, the psp freezes.

Thanks for any help.
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

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

You shouldn't really use the vsh* functions :)
As to the function not being there, try calling LoadExecForKernel_28D0D249() instead, as sometimes the SDK has those kind of names...
Back to top
View user's profile Send private message
gff_cruner



Joined: 01 May 2006
Posts: 11
Location: La Coruna - Spain

PostPosted: Thu Sep 21, 2006 11:56 pm    Post subject: Reply with quote

Thanks adrahil, that function works :)

The strange thing is that the compiler send the warning "implicit declaration of function 'LoadExecForKernel_28D0D249'". Maybe I´m not including the correct files?

Before your post i tried to execute the apps with sceKernelLoadExec and... it also works! so, somebody knows which is really the difference between sceKernelLoadExec and this other functions?
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Fri Sep 22, 2006 3:50 am    Post subject: Reply with quote

Sorry i forgot to mention, you indeed have to add "extern int LoadExecForKernel_28D0D249(...)" in your file, where in the "..." you put the params ^^

Quote:
Before your post i tried to execute the apps with sceKernelLoadExec and... it also works! so, somebody knows which is really the difference between sceKernelLoadExec and this other functions?

Not much.... they're each wrappers of each other with some layers added onto them...
Back to top
View user's profile Send private message
gff_cruner



Joined: 01 May 2006
Posts: 11
Location: La Coruna - Spain

PostPosted: Fri Sep 22, 2006 4:41 am    Post subject: Reply with quote

Thanks a lot adrahil !!

The app run perfectly now :)
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