]> git.baikalelectronics.ru Git - kernel.git/commit
uml: fix page table data sizes
authorJeff Dike <jdike@addtoit.com>
Tue, 5 Feb 2008 06:30:55 +0000 (22:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:28 +0000 (09:44 -0800)
commit3cd41238a6c0d3db2a51a05d3130794a0a450acf
tree8b0cf794410c9e632b9ee65b8e0750621d9c96ce
parent1ef8d6f6f75b7da116a00b592aefb403909ece1f
uml: fix page table data sizes

Get the sizes of various pieces of data right when using three-level
page tables.  pgd and pmd entries remain at 32 bits in a 32-bit
compilation because page tables will remain in low memory.  So,
PGDIR_SHIFT, the PTRS_PER_* values, set_pud, set_pmd are conditional
on 64BIT.

More use of phys_t is made when there are physical memory addresses
floating around.

ObCheckpatchViolationJustification - the new typedef is an alternate
definition of pmd_t, which I can't really live without.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/kernel/mem.c
include/asm-um/page.h
include/asm-um/pgtable-3level.h
include/asm-um/pgtable.h