forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LoadExecPS2 and ExecPS2

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Raizor



Joined: 18 Jan 2004
Posts: 60
Location: out there

PostPosted: Wed Feb 25, 2004 7:49 am    Post subject: LoadExecPS2 and ExecPS2 Reply with quote

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
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed Feb 25, 2004 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Raizor



Joined: 18 Jan 2004
Posts: 60
Location: out there

PostPosted: Fri Feb 27, 2004 6:50 pm    Post subject: Reply with quote

MrBrown, Thank you for this detailed info. I really appreciate it.

Raizor
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group