David S. Miller 2b77933c28 sparc64: Move to 64-bit PGDs and PMDs.
To make the page tables compact, we were using 32-bit PGDs and PMDs.
We only had to support <= 43 bits of physical addresses so this was
quite feasible.

In order to support larger physical addresses we have to move to
64-bit PGDs and PMDs.

Most of the changes are straight-forward:

1) {pgd,pmd}_t --> unsigned long

2) Anything that tries to use plain "unsigned int" types with pgd/pmd
   values needs to be adjusted.  In particular things like "0U" become
   "0UL".

3) {PGDIR,PMD}_BITS decrease by one.

4) In the assembler page table walkers, use "ldxa" instead of "lduwa"
   and adjust the low bit masks to clear out the low 3 bits instead of
   just the low 2 bits during pgd/pmd address formation.

Also, use PTRS_PER_PGD and PTRS_PER_PMD in the sizing of the
swapper_{pg_dir,low_pmd_dir} arrays.

This patch does not try to take advantage of having 64-bits in the
PMDs to simplify the hugepage code, that will come in a subsequent
change.

Signed-off-by: David S. Miller <davem@davemloft.net>
2013-11-12 15:22:35 -08:00
..
2008-07-27 23:00:59 +02:00
2008-12-09 00:50:13 -08:00
2012-03-28 18:30:03 +01:00
2008-07-27 23:00:59 +02:00
2012-03-28 18:30:03 +01:00
2008-07-27 23:00:59 +02:00
2012-03-28 18:30:03 +01:00
2008-07-27 23:00:59 +02:00
2013-03-20 11:06:55 -07:00
2012-03-28 18:30:03 +01:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2010-07-24 09:57:52 -06:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2008-08-31 20:56:15 -07:00
2012-05-13 13:23:16 -07:00
2012-03-28 18:30:03 +01:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2013-03-20 11:06:54 -07:00
2008-07-27 23:00:59 +02:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2008-08-29 02:15:23 -07:00
2011-05-12 13:44:29 -07:00
2008-07-27 23:00:59 +02:00
2011-04-19 22:11:40 -07:00
2008-07-27 23:00:59 +02:00
2013-09-25 14:07:50 +02:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2012-05-15 10:22:00 -07:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2012-03-28 18:30:03 +01:00
2012-05-14 14:05:07 -07:00
2008-07-27 23:00:59 +02:00
2012-07-26 16:46:16 -07:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2012-02-23 20:19:04 -07:00
2012-02-23 20:19:04 -07:00
2012-08-18 23:26:19 -07:00
2012-07-26 16:46:16 -07:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2013-03-31 19:29:12 -04:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2012-04-15 10:28:50 -07:00
2008-07-27 23:00:59 +02:00
2011-05-25 08:39:13 -07:00
2008-07-27 23:00:59 +02:00
2013-11-12 15:22:35 -08:00
2008-07-27 23:00:59 +02:00
2008-07-27 23:00:59 +02:00
2012-07-26 16:46:16 -07:00
2008-07-27 23:00:59 +02:00