dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/arch/sh
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
..
boards sh: R7780RP push-switch support. 2006-12-06 10:45:38 +09:00
boot sh: Add support for SH7206 and SH7619 CPU subtypes. 2006-12-06 10:45:36 +09:00
cchips sh: Cleanup board header directories. 2006-10-19 16:30:32 +09:00
configs sh: Add support for Solution Engine 7206 and 7619 boards. 2006-12-06 10:45:37 +09:00
drivers sh: dma-api channel capability extensions. 2006-12-06 10:45:39 +09:00
kernel sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
lib sh: Fix memcpy() build error on sh4eb. 2006-09-27 17:50:03 +09:00
math-emu sh: Kill off remaining config.h references. 2006-10-03 13:19:02 +09:00
mm sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
oprofile sh: Add SH7750S/SH7091 rules for SH7750 oprofile driver. 2006-09-27 14:30:11 +09:00
tools sh: Add support for SH7206 and SH7619 CPU subtypes. 2006-12-06 10:45:36 +09:00
Kconfig sh: TLB miss fast-path optimizations. 2006-12-06 10:45:38 +09:00
Kconfig.debug sh: Add support for 4K stacks. 2006-09-27 18:22:14 +09:00
Makefile sh: gcc4 support. 2006-12-06 10:45:38 +09:00