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 

sceKernelLoadExec()

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



Joined: 02 Jun 2009
Posts: 226

PostPosted: Sun Jul 26, 2009 10:37 am    Post subject: sceKernelLoadExec() Reply with quote

What does exactly sceKernelLoadExec() do?

It does security checks, extracts the ELF, load program section in memory, resolves stubs, jump to entry point... Am I missing something here?

Thanks in advance :)
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Sun Jul 26, 2009 4:19 pm    Post subject: Reply with quote

Its really use to execute psp programs. Commonly, its use in Sony Updator, and executing of eboot games. Its use sometimes in VSH mode, exploits (tiff in 2.00-2.80) to execute things from the flash, or the memory stick.

If you take a alook at the m33 sdk samples (3.40 OE source or 4.01m33), you can see how they are used.
_________________
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
Back to top
View user's profile Send private message AIM Address
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Sun Jul 26, 2009 10:24 pm    Post subject: Reply with quote

Thanks Dariusc123456, but I already know how to use the function. The point is knowing what that system call does internally.
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Wed Jul 29, 2009 11:56 pm    Post subject: Reply with quote

AFAIK LoadExec only stores the name of the module and parameters in memory and reboots the kernel. After reboot the pspbtcnf.bin modules are executed according to the normal boot process and then finally your module. Other functions are responsible for the actual loading :/
Because if you LoadExec an invalid module it reboots first and only then errors out. (However since 5.00 OFW if you launch an unsigned EBOOT from the XMB it detects immediately and shows an error instead of rebooting and then returning back to VSH to show the error like older firmware. I wonder if this also applies from in-game for new firmware.)

The loading process I assume would be exactly the same as how the pspbtcnf.bin modules are loaded.
Your question should be what does sceKernelLoadModule do as it would be this that invokes the loading/linking etc related processes.
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 -> PSP 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