]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: pgtable: switch order of Linux vs hardware page tables
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 16 Nov 2010 00:16:01 +0000 (00:16 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 22 Dec 2010 11:05:32 +0000 (11:05 +0000)
commitd30e45eeabefadc6039d7f876a59e5f5f6cb11c6
tree9873141aac1042fe8b230aa525599135f5411e36
parentf6e3354d02aa1f30672e3671098c12cb49c7da25
ARM: pgtable: switch order of Linux vs hardware page tables

This switches the ordering of the Linux vs hardware page tables in
each page, thereby eliminating some of the arithmetic in the page
table walks.  As we now place the Linux page table at the beginning
of the page, we can deal with the offset in the pgt by simply masking
it away, along with the other control bits.

This also makes the arithmetic all be positive, rather than a mixture.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/pgalloc.h
arch/arm/include/asm/pgtable.h
arch/arm/mm/fault.c
arch/arm/mm/proc-macros.S
arch/arm/mm/proc-v7.S