PSP memory map: WHERE ?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
bubugian
Posts: 18
Joined: Thu Oct 09, 2008 7:20 am

PSP memory map: WHERE ?

Post by bubugian »

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: Select all

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!
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

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.
bubugian
Posts: 18
Joined: Thu Oct 09, 2008 7:20 am

Post by bubugian »

jimparis wrote:You can find some info at http://hitmen.c02.at/files/yapspd/psp_doc/
Thanks, very useful!
Post Reply