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

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Jun 01, 2008 2:27 am Post subject: How to crash the PSP, so watchdog restarts after 10 seconds? |
|
|
| How do I crash the PSP such that it autorestarts after 10 seconds or whatever? |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Sun Jun 01, 2008 2:46 am Post subject: |
|
|
lol there are tons of ways.
asm("break\n");
_sw(0, 0);
int *x = NULL; *x = 0;
etc, etc |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Jun 01, 2008 2:49 am Post subject: |
|
|
Thank you. I didn't have any idea how. And I presumed that nonsense in asm(..) would give a compiler error.
The rest of my program will function properly right? I want it to crash only when I call that code. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sun Jun 01, 2008 6:02 pm Post subject: |
|
|
| The real question is why on earth would you want to? :) |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Jun 01, 2008 6:12 pm Post subject: |
|
|
| TyRaNiD wrote: | | The real question is why on earth would you want to? :) |
So people will get tired of guessing passwords.. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sun Jun 01, 2008 6:16 pm Post subject: |
|
|
| Can't you just do it nice and call scePowerRequestStandby() which will shut down the PSP without any extra cludges :) |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Jun 01, 2008 6:18 pm Post subject: |
|
|
| TyRaNiD wrote: | | Can't you just do it nice and call scePowerRequestStandby() which will shut down the PSP without any extra cludges :) |
But this way they have to stare at the "wrong password" screen for 10 seconds. Its more the annoyance factor. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sun Jun 01, 2008 6:23 pm Post subject: |
|
|
| Code: | | sceKernelDelayThread(10000000); scePowerRequestStandby(); | does the same thing :P |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Jun 01, 2008 6:25 pm Post subject: |
|
|
| TyRaNiD wrote: | | Code: | | sceKernelDelayThread(10000000); scePowerRequestStandby(); | does the same thing :P |
But they can switch it off in 3 seconds using the power switch if its only DelayThread. Crash cant be turned off in less than 10 seconds. |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sun Jun 01, 2008 6:27 pm Post subject: |
|
|
Fine,
| Code: | | scePowerLock(0); sceKernelDelayThread(10000000); scePowerUnlock(0); scePowerRequestStandby(); |
After all I could probably get an exception handler in somewhere to prevent you crashing it in the first place :P |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Sun Jun 01, 2008 6:31 pm Post subject: |
|
|
| I though those were kernel mode only functions? Will the powerlock thing be usable in my vsh mode module? |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Sun Jun 01, 2008 6:33 pm Post subject: |
|
|
| They are all user mode functions. At least they should be :) The lock stuff is so for example a game could write out a file and be sure the user cannot possibly power off during that period. |
|
| Back to top |
|
 |
Jim

Joined: 02 Jul 2005 Posts: 487 Location: Sydney
|
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon Jun 02, 2008 1:33 am Post subject: |
|
|
| TyRaNiD wrote: | | They are all user mode functions. At least they should be :) The lock stuff is so for example a game could write out a file and be sure the user cannot possibly power off during that period. |
When I was working on SNES9xTYL for the Slim, I found that the exception handler couldn't be used on the Slim. Sakya (I think it was him) eventually made a kernel mode prx that could be loaded from user mode that allowed an exception handler to be used from a Slim app. You can find that with a search. |
|
| Back to top |
|
 |
|