android_kernel_xiaomi_sm8350/arch/sh
Paul Mundt 8b395265f8 sh: Fix fatal oops in copy_user_page() on sh4a (SH7780).
We had a pretty interesting oops happening, where copy_user_page()
was down()'ing p3map_sem[] with a bogus offset (particularly, an
offset that hadn't been initialized with sema_init(), due to the
mismatch between cpu_data->dcache.n_aliases and what was assumed
based off of the old CACHE_ALIAS value).

Luckily, spinlock debugging caught this for us, and so we drop
the old hardcoded CACHE_ALIAS for sh4 completely and rely on the
run-time probed cpu_data->dcache.alias_mask. This in turn gets
the p3map_sem[] index right, and everything works again.

While we're at it, also convert to 4-level page tables..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2006-09-27 14:38:02 +09:00
..
boards sh: RTS7751R2D board updates. 2006-09-27 14:02:09 +09:00
boot Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cchips sh: Move hd64461.h to a more sensible location. 2006-09-27 13:42:57 +09:00
configs
drivers sh: Various cosmetic cleanups. 2006-09-27 12:31:01 +09:00
kernel sh: Wire up new syscalls. 2006-09-27 14:36:44 +09:00
lib sh: Fix a sign extension bug in memset(). 2006-09-27 14:13:14 +09:00
mm sh: Fix fatal oops in copy_user_page() on sh4a (SH7780). 2006-09-27 14:38:02 +09:00
oprofile sh: Add SH7750S/SH7091 rules for SH7750 oprofile driver. 2006-09-27 14:30:11 +09:00
tools
Kconfig sh: RTS7751R2D board updates. 2006-09-27 14:02:09 +09:00
Kconfig.debug
Makefile sh: hp6xx mach-type cleanups. 2006-09-27 13:07:38 +09:00