forked from luck/tmp_suning_uos_patched
510c72ad2d
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> |
||
---|---|---|
.. | ||
cache-debugfs.c | ||
cache-sh2.c | ||
cache-sh3.c | ||
cache-sh4.c | ||
cache-sh7705.c | ||
clear_page.S | ||
consistent.c | ||
copy_page.S | ||
extable.c | ||
fault-nommu.c | ||
fault.c | ||
hugetlbpage.c | ||
init.c | ||
ioremap.c | ||
Kconfig | ||
Makefile | ||
pg-dma.c | ||
pg-nommu.c | ||
pg-sh4.c | ||
pg-sh7705.c | ||
pmb.c | ||
tlb-flush.c | ||
tlb-nommu.c | ||
tlb-sh3.c | ||
tlb-sh4.c |