| View previous topic :: View next topic |
| Author |
Message |
TUniqueW

Joined: 09 Dec 2006 Posts: 12
|
Posted: Sat Dec 09, 2006 5:24 pm Post subject: sceKernelExitVSHVSH(NULL); <-- Not working ? |
|
|
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(¶m, 0, sizeof(param));
param.argp = PATH;
param.args = strlen(PATH) + 1;
param.key = "vsh";
sceKernelLoadExec(PATH, ¶m);
|
PS: for sceKernelExitVSHVSH(Null); I'm using SE SDK . _________________ Developer: C/C++ knows nothing about assembly! |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Sat Dec 09, 2006 5:43 pm Post subject: |
|
|
| If you are in kernel mode, use sceKernelExitVSHKernel. |
|
| Back to top |
|
 |
TUniqueW

Joined: 09 Dec 2006 Posts: 12
|
Posted: Sat Dec 09, 2006 5:57 pm Post subject: |
|
|
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 |
|
 |
adrahil
Joined: 16 Mar 2006 Posts: 277
|
Posted: Sat Dec 09, 2006 9:30 pm Post subject: |
|
|
| sceSysconResetDevice(1, 1) would also be a way to force the reboot of the psp.... |
|
| Back to top |
|
 |
TUniqueW

Joined: 09 Dec 2006 Posts: 12
|
Posted: Sun Dec 10, 2006 5:01 am Post subject: |
|
|
| 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 |
|
 |
TUniqueW

Joined: 09 Dec 2006 Posts: 12
|
Posted: Sun Dec 10, 2006 9:30 am Post subject: Trued --> |
|
|
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(¶m, 0, sizeof(param));
param.argp = PATH;
param.args = strlen(PATH) + 1;
param.key = "vsh";
sceKernelLoadExec(PATH, ¶m);
//Nothing happens!when called from a module //Game mode not tested
|
| Code: |
sceKernelSelfStopUnloadModule(1, args, argp);
struct SceKernelLoadExecParam param;
memset(¶m, 0, sizeof(param));
param.argp = PATH;
param.args = strlen(PATH) + 1;
param.key = "vsh";
sceKernelLoadExec(PATH, ¶m);
//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 |
|
 |
|