sceKernelExitVSHVSH(NULL); <-- Not working ?

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

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
TUniqueW
Posts: 12
Joined: Sat Dec 09, 2006 12:51 pm

sceKernelExitVSHVSH(NULL); <-- Not working ?

Post by TUniqueW »

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


int vsh =0;
vsh = sceKernelExitVSHVSH&#40;NULL&#41;;
if&#40;vsh <0&#41;&#123;
blit_string&#40;0, 264, "Error on reboot!"&#41;;

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

Code: Select all

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

PS: for sceKernelExitVSHVSH(Null); I'm using SE SDK .
Developer: C/C++ knows nothing about assembly!
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

If you are in kernel mode, use sceKernelExitVSHKernel.
User avatar
TUniqueW
Posts: 12
Joined: Sat Dec 09, 2006 12:51 pm

Post by TUniqueW »

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!
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

sceSysconResetDevice(1, 1) would also be a way to force the reboot of the psp....
User avatar
TUniqueW
Posts: 12
Joined: Sat Dec 09, 2006 12:51 pm

Post by TUniqueW »

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!
User avatar
TUniqueW
Posts: 12
Joined: Sat Dec 09, 2006 12:51 pm

Trued -->

Post by TUniqueW »

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

Code: Select all

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

Code: Select all

sceKernelExitVSHVSH&#40;NULL&#41;; //Nothing happens &#40;returns a negative integer&#41;
in the following PATH is the path to vshmain module

Code: Select all

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

Code: Select all

  sceKernelSelfStopUnloadModule&#40;1, args, argp&#41;;
  struct SceKernelLoadExecParam param;
  memset&#40;&param, 0, sizeof&#40;param&#41;&#41;;
  param.argp = PATH;
  param.args = strlen&#40;PATH&#41; + 1;
  param.key = "vsh";
  sceKernelLoadExec&#40;PATH, &param&#41;; 
//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!
Post Reply