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 

PSP memory map: WHERE ?

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



Joined: 09 Oct 2008
Posts: 18

PostPosted: Thu Aug 13, 2009 8:33 am    Post subject: PSP memory map: WHERE ? Reply with quote

I'm new with psp programming so please be patient if my questions are banal.

Looking at some samplecode (Fanjita sio's prx in this case) I found following code:

Code:

int intr_handler(void *arg)
{
   sceKernelDisableIntr(PSP_HPREMOTE_INT);
   u32 stat = _lw(0xBE500040);
   _sw(stat, 0xBE500044);
   if(!(_lw(PSP_UART4_STAT) & PSP_UART_RXEMPTY)) {
      fWrite(_lw(PSP_UART4_FIFO));
      sceKernelSetEventFlag(g_eventflag , SIO_CHAR_RECV_EVENT); // set "we got something!!" flag
   }
   sceKernelEnableIntr(PSP_HPREMOTE_INT); // re-enable interrupt
   return -1;
}


I imagine that 0xBE500040 and 0xBE500044 are pointer to uart controller's registers.
I'm asking:
Where I could find a table with psp's memory map ?
Which uart controller is used in psp ?

Thanks all!
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Thu Aug 13, 2009 10:17 am    Post subject: Reply with quote

You can find some info at http://hitmen.c02.at/files/yapspd/psp_doc/
In general, addresses like this and how they're used are found by reverse-engineering the Sony kernel and binaries to see how they work.
Back to top
View user's profile Send private message
bubugian



Joined: 09 Oct 2008
Posts: 18

PostPosted: Thu Aug 13, 2009 6:48 pm    Post subject: Reply with quote

jimparis wrote:
You can find some info at http://hitmen.c02.at/files/yapspd/psp_doc/

Thanks, very useful!
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