| View previous topic :: View next topic |
| Author |
Message |
Raizor
Joined: 18 Jan 2004 Posts: 60 Location: out there
|
Posted: Wed Feb 25, 2004 7:49 am Post subject: LoadExecPS2 and ExecPS2 |
|
|
Does anyone know if LoadExecPS2 calls ExecPS2 after loading the elf file? or is it a totally seperate entity? I've been hunting around for info but came up with nothing so far.
Thanks in advance,
Raizor |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Wed Feb 25, 2004 10:56 am Post subject: |
|
|
Yes, it does. LoadExecPS2() actually invokes another program, called EELOAD, which is copied from the BIOS to 0x82000 and executed. EELOAD takes over at step 1 below.
LoadExecPS2():
0. Wipe all EE RAM above 0x80000 and do a "full" EE peripheral reset.
1. Reset IOP with image specified as an argument, or default rom0:EELOADCNF.
2. Parse other args that I don't particularly remember off the top of my head :). These args specify extra modules to preload, whether or not the modules or executable uses MagicGate, etc.
3. sceSifLoadElf() on the file.
4. ExecPS2() the loaded image.
ExecPS2():
0. Do a soft EE peripheral reset.
1. Terminate all threads and delete all semaphores.
2. Setup the program's thread and execute the program. |
|
| Back to top |
|
 |
Raizor
Joined: 18 Jan 2004 Posts: 60 Location: out there
|
Posted: Fri Feb 27, 2004 6:50 pm Post subject: |
|
|
MrBrown, Thank you for this detailed info. I really appreciate it.
Raizor |
|
| Back to top |
|
 |
|