Page 1 of 1
LoadExecPS2 and ExecPS2
Posted: Wed Feb 25, 2004 7:49 am
by Raizor
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
Posted: Wed Feb 25, 2004 10:56 am
by mrbrown
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.
Posted: Fri Feb 27, 2004 6:50 pm
by Raizor
MrBrown, Thank you for this detailed info. I really appreciate it.
Raizor