Peter Damron wrote:
> I don't know many of the details of this topic,
> but I think I can answer some of the high-level issues.
> 
> The MMU is mapping pages from virtual to physical addresses.
> The minimum page size on SPARC is 8 KBytes,
> so the lowest 13 bits of the address is the offset into an 8K page.
> The MMU does not deal with those page offsets.
> The encoding you are seeing is that those lowest 13-bits
> are being used to hold other information.
> In this case that is the context id,
> which is probably identical to the getpid() value.

Close.  But it can't be exactly the pid, since 13 bits is only enough 
for 0-8191, but pids can go up to at least 30000.  So there needs to be 
(and is) a mapping with not more than 8191 contexts resident in hardware 
at any one time. [*]

Hugh.

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to