[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TLB



Daniele Bellucci <bellucda@tiscali.it> writes:

> Hi Ed,
> tnx for you quick answer
>
>> I looked in the pentium manuals (they're great for answering this kind
>> of thing), and it doesn't really come out and say the key is a virtual
>> address, but I am pretty sure it is.
>
> For example: is 0x80000000 a key?

That's my impression: on x86, if you want to use 0x80000000 as a
virtual address, then instead of looking the translation up through
the page tables starting with the directory cr3 points to, you use
that VA as a key to find the pte in the TLB.

>> This they say explicitly.  It's a page table entry or page directory
>> entry.
>
> by the mean of a pointer to a pte_t ? 

No, it's the pte itself.  A pointer would mean that you'd have to do
more to get the translation, like going to memory, and the gains from
having a TLB wouldn't be as great.

-- 
--Ed L Cashin     PGP public key: http://noserose.net/e/pgp/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/