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 

TLB?

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



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed May 11, 2005 3:02 pm    Post subject: TLB? Reply with quote

Has anyone gotten far enough to check to see the PSP's CPU supports a TLB? I had assumed it did, but then a friend pointed out this slide: http://pc.watch.impress.co.jp/docs/2005/0323/kaigai_2.jpg

It would really suck if it didn't.
Back to top
View user's profile Send private message
Guest






PostPosted: Wed May 11, 2005 3:24 pm    Post subject: Re: TLB? Reply with quote

mrbrown wrote:
Has anyone gotten far enough to check to see the PSP's CPU supports a TLB? I had assumed it did, but then a friend pointed out this slide: http://pc.watch.impress.co.jp/docs/2005/0323/kaigai_2.jpg

It would really suck if it didn't.


Depends on ones way of thinking. Were I to write an OS for an embedded device, I would try to avoid using a TLB unless I really have to. TLB is only necessary to provide any hardware assist to implementing virtual memory.

If I ever port the OS that I want to port to the PS2, you can be sure I won't be using the TLB. :P
Back to top
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Wed May 11, 2005 3:56 pm    Post subject: Reply with quote

There is no "nommu" (uClinux) port of Linux for the MIPS processor. The last one that existed was for the PS1. That means that Linux on the PSP will need a huge investment in getting the MIPS nommu port started, much less targeted to the PSP. nommu means no Linux on the PSP for a long time :P.
Back to top
View user's profile Send private message
Guest






PostPosted: Wed May 11, 2005 4:04 pm    Post subject: Reply with quote

*sniff* Emotes Gorim with a tear in his eye.

:)
Back to top
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Wed May 11, 2005 7:28 pm    Post subject: Reply with quote

then go for netbsd that do have a mmu-less port :)
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Wed May 11, 2005 9:33 pm    Post subject: Reply with quote

Quote:
Xiptech ported uClinux to MIPS platform. We offer patch of uClinux kernel,uClibc,elf2flt and document. We also provide a software Simulator, which can run MIPS linux binary code, for people who want to learn MIPS but without real hardware. The simulator is a virtual machine, it has a MIPS R3000 CPU and some virtual hardwares, including UART,flash rom,RAM,LCD,touch screen,etc. It provides world leading performance


http://www.xiptech.com/uclinuxformips.htm
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu May 12, 2005 1:11 am    Post subject: Reply with quote

blackdroid wrote:
then go for netbsd that do have a mmu-less port :)


They have a MIPS mmu-less port?
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Thu May 12, 2005 1:19 am    Post subject: Reply with quote

Well, loser indicated that kernel RAM is protected from user access, so they would have to have at least a basic MMU in place to lock down certain sections of RAM.

Another thing he mentioned was that cop0 was unusable in user programs. So figuring out what type of MMU they have and what it can do is a bit tricky (along with many other kernel-only things).
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Thu May 12, 2005 3:12 am    Post subject: Reply with quote

Yes that does seem to be the case.

Perhaps what they meant by no TLB is you can no longer access it, I would guess (at least technically) you could access to TLB for setting up scratch pad or something in the ps2. Seems a strange thing to say though.
Back to top
View user's profile Send private message
Guest






PostPosted: Thu May 12, 2005 3:30 am    Post subject: Reply with quote

Well, without a TLB then all memory accesses are "unmapped". There can still be user, supervisor, and kernel spaces, which would be sufficient to protect the kernel from userland. The only thing is, they may need to hard code the kernel range, or set it via registers. Just a possibility of course. :)
Back to top
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