kernel-fxtec-pro1x/arch/sh/mm
Paul Mundt 510c72ad2d sh: Fixup various PAGE_SIZE == 4096 assumptions.
There were a number of places that made evil PAGE_SIZE == 4k
assumptions that ended up breaking when trying to play with
8k and 64k page sizes, this fixes those up.

The most significant change is the way we load THREAD_SIZE,
previously this was done via:

	mov	#(THREAD_SIZE >> 8), reg
	shll8	reg

to avoid a memory access and allow the immediate load. With
a 64k PAGE_SIZE, we're out of range for the immediate load
size without resorting to special instructions available in
later ISAs (movi20s and so on). The "workaround" for this is
to bump up the shift to 10 and insert a shll2, which gives a
bit more flexibility while still being much cheaper than a
memory access.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2006-12-06 10:45:39 +09:00
..
cache-debugfs.c sh: build fixes for defconfigs. 2006-10-03 13:14:04 +09:00
cache-sh2.c sh: Add support for SH7206 and SH7619 CPU subtypes. 2006-12-06 10:45:36 +09:00
cache-sh3.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cache-sh4.c sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
cache-sh7705.c sh: More cosmetic cleanups and trivial fixes. 2006-09-27 17:03:56 +09:00
clear_page.S sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
consistent.c sh: Zero-out coherent buffer in consistent_alloc(). 2006-10-10 18:33:10 +09:00
copy_page.S sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
extable.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
fault-nommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fault.c sh: TLB miss fast-path optimizations. 2006-12-06 10:45:38 +09:00
hugetlbpage.c sh: hugetlb updates. 2006-09-27 13:11:57 +09:00
init.c sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
ioremap.c sh: Preliminary support for SH-X2 MMU. 2006-12-06 10:45:37 +09:00
Kconfig sh: TLB miss fast-path optimizations. 2006-12-06 10:45:38 +09:00
Makefile sh: Add support for cacheline poking through debugfs. 2006-09-27 17:51:01 +09:00
pg-dma.c sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
pg-nommu.c sh: Various nommu fixes. 2006-09-27 17:21:02 +09:00
pg-sh4.c sh: p3map_sem sem2mutex conversion. 2006-12-06 10:45:37 +09:00
pg-sh7705.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmb.c sh: More cosmetic cleanups and trivial fixes. 2006-09-27 17:03:56 +09:00
tlb-flush.c sh: Initial vsyscall page support. 2006-09-27 18:33:49 +09:00
tlb-nommu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tlb-sh3.c [PATCH] sh: Use pfn_valid() for lazy dcache write-back on SH7705 2005-11-07 07:53:28 -08:00
tlb-sh4.c sh: Add flag for MMU PTEA capability. 2006-09-27 14:55:41 +09:00