[parisc-linux] Proposal for altering our Page Table layouts
James Bottomley
James.Bottomley at steeleye.com
Sun Apr 11 07:13:57 MDT 2004
On Fri, 2004-04-09 at 09:38, John Marvin wrote:
> You don't need this restriction. No PA machine actually implements more
> than a 40 bit physical address space (even the latest Pluto based
> machines, which support 44 bits for IA64 are put into a 40 bit addressing
> mode for PARISC). So, for a 4K page table size (12 bits), you only need
> 28 bits (40-12) to be able to address any possible 4K aligned physical
> address. This leaves you 4 bits for directory flags. Since we only
> currently use 1, you still have 3 to spare.
>
> Note that you won't even need to incur an extra instruction in the
> tlb miss handler to do the shift, because the deposit to clear the valid
> bit can be converted to a zdep to both clear the bit(s) and shift. I
> think you have to use a different target register in that case though.
Well, never say never in computing. However, I'll use this scheme.
Then all we need is a way to ensure that page tables are allocated in
the first 1TB. If the worst comes to the worst, we could always
introduce ZONE_HIGHMEM to ensure this were always true.
James
More information about the parisc-linux
mailing list