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 

Addresses of GS privileged registers

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> The Incredible Hall Of Shame
View previous topic :: View next topic  
Author Message
aap



Joined: 05 Jun 2008
Posts: 7

PostPosted: Tue Mar 03, 2009 6:18 am    Post subject: Addresses of GS privileged registers Reply with quote

Hi there,
I'm new to ps2dev and while reading some source code I found that the addresses of the GS privileged registers are something like 0x120000XX, so far so good. Then I got me the docs of the PS2 GNU/Linux kit and there it says the address for (as an example) BUSDIR is 0x44 instead of 0x12001040, which I've found everywhere else.
Where do I find the *real* address in the docs? Not that I wouldn't trust you guys but I'd really like to find the correct address of each register in the official information. I think there has to be made some kind of conversion of the values...like 'address of reg' * 16 + 0x12000000 or something similar...it works for the first few registers, but the ones that have an address starting with 0x4 can't be converted this way...

Thanks for any help :)
Back to top
View user's profile Send private message
jbit
Site Admin


Joined: 28 May 2005
Posts: 293
Location: København, Danmark

PostPosted: Tue Mar 03, 2009 7:07 am    Post subject: Reply with quote

EE User's Manual, "GS Privileged Registers"
Back to top
View user's profile Send private message Visit poster's website
aap



Joined: 05 Jun 2008
Posts: 7

PostPosted: Tue Mar 03, 2009 7:44 am    Post subject: Reply with quote

Doesn't say anything about addresses, does it?
Only some sentences about that privileged registers are mapped to the EE memory space, but I knew that before. I want to find the addresses of these registers as I explained above. It's probably only some sort of calculation, but I can't figure out how I get from, say, 0x48 (which is the value given by the manual) to 0x12001080 (which is the actual address).
Back to top
View user's profile Send private message
Lukasz



Joined: 19 Jan 2004
Posts: 248
Location: Denmark

PostPosted: Tue Mar 03, 2009 8:28 am    Post subject: Reply with quote

You are looking in the wrong manual, the values you are refering to are in the GS User's Manual.

Like jbit writes, in the EE User's Manual there is a memory map / register map section, where the GS privileged registers are also listed.
_________________
Lukasz.dk
Back to top
View user's profile Send private message Visit poster's website
aap



Joined: 05 Jun 2008
Posts: 7

PostPosted: Tue Mar 03, 2009 11:01 pm    Post subject: Reply with quote

The only thing I found is that th GS registers are mapped to memory starting at x12000000, that was in the EE Overview by the way. It said nothing about the addresses of any registers, that's only the case in the GS User's manual.
Back to top
View user's profile Send private message
jbit
Site Admin


Joined: 28 May 2005
Posts: 293
Location: København, Danmark

PostPosted: Tue Mar 03, 2009 11:39 pm    Post subject: Reply with quote

... EE User's Manual Version 5.0, page 26, section 2.2.3. GS Privileged Registers... under the sub heading "Register Map" under the heading "Memory Map / Register Map"

I admit that sometimes finding what you want in the PS2 manuals is tricky, but at least try looking....
Back to top
View user's profile Send private message Visit poster's website
aap



Joined: 05 Jun 2008
Posts: 7

PostPosted: Wed Mar 04, 2009 1:32 am    Post subject: Reply with quote

So that's why I couldn't find it. I have version 3.1 and in that version page 26 is blank. I'll probably have to find a newer version.
Back to top
View user's profile Send private message
jbit
Site Admin


Joined: 28 May 2005
Posts: 293
Location: København, Danmark

PostPosted: Wed Mar 04, 2009 1:37 am    Post subject: Reply with quote

There's no way you can have version 3.1 of the docs legally... hall of shamed
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> The Incredible Hall Of Shame All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can 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