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 

How to make system call ?

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



Joined: 18 Aug 2006
Posts: 6

PostPosted: Sat Oct 20, 2007 3:26 pm    Post subject: How to make system call ? Reply with quote

Hi, everybody.I have a question about IMPORT modules.

I found that in the xxx_driver.s,there would be IMPORT_START, IMPORT_FUNC macro to generate the stub function.
When i read the IMPORT_START and IMPORT_FUNC macro in "pspimport.s", i was puzzled.It seems these macroes set some data structs.But, how these code invoke the system call? I cant find the real function address ? Is there any wizardly mechanism in the PSP kernel to make these stubs work?
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sat Oct 20, 2007 6:12 pm    Post subject: Reply with quote

Yeah, there's some sort of magic going on :)
The macro adds the import to .lib.stub, .rodata.scenid, ... sections, which basically give information to the PSP kernel about what functions to import into the application on loading...
Back to top
View user's profile Send private message
1073X



Joined: 18 Aug 2006
Posts: 6

PostPosted: Mon Oct 22, 2007 7:46 pm    Post subject: Reply with quote

adrahil wrote:
Yeah, there's some sort of magic going on :)
The macro adds the import to .lib.stub, .rodata.scenid, ... sections, which basically give information to the PSP kernel about what functions to import into the application on loading...


Thanks for your answer. ^.^
i have another question.Can i get the prx file of system module? Like usb driver or display driver ...
I read the document < ModuleTutorialv1.pdf > and found that the module code is placed in *.prx . So i think there would be any prx file that hold the system call code. Im i right? pls dont laugh at me.
Back to top
View user's profile Send private message
sakya



Joined: 28 Apr 2006
Posts: 190

PostPosted: Mon Oct 22, 2007 8:12 pm    Post subject: Reply with quote

Hi! :)

http://silverspring.lan.st/

Ciaooo
Sakya
Back to top
View user's profile Send private message Visit poster's website
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Oct 23, 2007 5:42 am    Post subject: Reply with quote

1073X wrote:
adrahil wrote:
Yeah, there's some sort of magic going on :)
The macro adds the import to .lib.stub, .rodata.scenid, ... sections, which basically give information to the PSP kernel about what functions to import into the application on loading...


Thanks for your answer. ^.^
i have another question.Can i get the prx file of system module? Like usb driver or display driver ...
I read the document < ModuleTutorialv1.pdf > and found that the module code is placed in *.prx . So i think there would be any prx file that hold the system call code. Im i right? pls dont laugh at me.


If you mount flash0: to the USB (the newer custom firmware versions will do this from the recovery menu or from the vsh if 3.71 M33), you can copy all the system prx's. However, then you need to use PRXdecrypter on them as they are encrypted and compressed. The latest version is 1.7. Just google for it.
Back to top
View user's profile Send private message AIM Address
1073X



Joined: 18 Aug 2006
Posts: 6

PostPosted: Tue Oct 23, 2007 10:58 am    Post subject: Reply with quote

Thanks all of you. im trying.
This is realy a great place.
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