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 

sceKernelExitVSHVSH(NULL); <-- Not working ?

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



Joined: 09 Dec 2006
Posts: 12

PostPosted: Sat Dec 09, 2006 5:24 pm    Post subject: sceKernelExitVSHVSH(NULL); <-- Not working ? Reply with quote

Having problem with rebooting PSP-->
I'm trying to make the PSP reboot when I press HOME + SELECT in the XMB.
every thing works fine when I press (HOME + SELECT) it shows me error ("Error on reboot!") you'll see your self :

Code:


int vsh =0;
vsh = sceKernelExitVSHVSH(NULL);
if(vsh <0){
blit_string(0, 264, "Error on reboot!");



I have even tried unloading and stopping "vshmain.prx" then loading it again (but its not possible 'PSP shuts down'" like this :
Code:

  sceKernelSelfStopUnloadModule(1, args, argp);
  struct SceKernelLoadExecParam param;
  memset(&param, 0, sizeof(param));
  param.argp = PATH;
  param.args = strlen(PATH) + 1;
  param.key = "vsh";
  sceKernelLoadExec(PATH, &param);



PS: for sceKernelExitVSHVSH(Null); I'm using SE SDK .
_________________
Developer: C/C++ knows nothing about assembly!
Back to top
View user's profile Send private message MSN Messenger
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Sat Dec 09, 2006 5:43 pm    Post subject: Reply with quote

If you are in kernel mode, use sceKernelExitVSHKernel.
Back to top
View user's profile Send private message
TUniqueW



Joined: 09 Dec 2006
Posts: 12

PostPosted: Sat Dec 09, 2006 5:57 pm    Post subject: Reply with quote

I am in kernel mode ... but I dunno how to use that :( ...
a little help about this would be appreciated as I don't know how to use any kernel commands
_________________
Developer: C/C++ knows nothing about assembly!
Back to top
View user's profile Send private message MSN Messenger
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sat Dec 09, 2006 9:30 pm    Post subject: Reply with quote

sceSysconResetDevice(1, 1) would also be a way to force the reboot of the psp....
Back to top
View user's profile Send private message
TUniqueW



Joined: 09 Dec 2006
Posts: 12

PostPosted: Sun Dec 10, 2006 5:01 am    Post subject: Reply with quote

adrahil wrote:
sceSysconResetDevice(1, 1) would also be a way to force the reboot of the psp....


That would be good.... but someone has tried that and said it will give you a disk error.....
_________________
Developer: C/C++ knows nothing about assembly!
Back to top
View user's profile Send private message MSN Messenger
TUniqueW



Joined: 09 Dec 2006
Posts: 12

PostPosted: Sun Dec 10, 2006 9:30 am    Post subject: Trued --> Reply with quote

OK I have tried these and look what happened -->
Code:

sceSysconResetDevice(1, 1,); //PSP crashes (when in game mode)
//When is called with a module in XMB--> XMB is unloaded but never //reloaded

Code:

sceKernelExitVSHVSH(NULL); //Nothing happens (returns a negative integer)

in the following PATH is the path to vshmain module
Code:

  struct SceKernelLoadExecParam param;
  memset(&param, 0, sizeof(param));
  param.argp = PATH;
  param.args = strlen(PATH) + 1;
  param.key = "vsh";
  sceKernelLoadExec(PATH, &param);
//Nothing happens!when called from a module //Game mode not tested

Code:

  sceKernelSelfStopUnloadModule(1, args, argp);
  struct SceKernelLoadExecParam param;
  memset(&param, 0, sizeof(param));
  param.argp = PATH;
  param.args = strlen(PATH) + 1;
  param.key = "vsh";
  sceKernelLoadExec(PATH, &param);
//vshmain.prx is unloaded then psp shuts down... never booted again....


well I think I now need help .....

Thanks in advance,
TUW
_________________
Developer: C/C++ knows nothing about assembly!
Back to top
View user's profile Send private message MSN Messenger
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