linux/arch/sh/kernel/cpu/sh3
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
..
Makefile sh: Exception vector rework and SH-2/SH-2A support. 2006-12-06 10:45:36 +09:00
clock-sh3.c [PATCH] sh: Simplistic clock framework 2006-01-16 23:15:28 -08:00
clock-sh7300.c [PATCH] sh: Simplistic clock framework 2006-01-16 23:15:28 -08:00
clock-sh7705.c [PATCH] sh: Simplistic clock framework 2006-01-16 23:15:28 -08:00
clock-sh7706.c sh: Add support for SH7706/SH7710/SH7343 CPUs. 2006-09-27 17:38:11 +09:00
clock-sh7709.c [PATCH] sh: Simplistic clock framework 2006-01-16 23:15:28 -08:00
entry.S sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
ex.S sh: Fix exception_handling_table alignment. 2006-10-19 16:30:32 +09:00
probe.c sh: Add support for SH7706/SH7710/SH7343 CPUs. 2006-09-27 17:38:11 +09:00
setup-sh7300.c sh: Add setup code for various CPU subtypes. 2006-09-27 17:30:35 +09:00
setup-sh7705.c sh: Add setup code for various CPU subtypes. 2006-09-27 17:30:35 +09:00
setup-sh7708.c sh: Add setup code for various CPU subtypes. 2006-09-27 17:30:35 +09:00
setup-sh7709.c sh: Add setup code for various CPU subtypes. 2006-09-27 17:30:35 +09:00
setup-sh7710.c sh: Add support for SH7706/SH7710/SH7343 CPUs. 2006-09-27 17:38:11 +09:00