linux-stable-rt/arch/arm/mm
Lennert Buytenhek afe4b25e7d [ARM] 3881/4: xscale: clean up cp0/cp1 handling
XScale cores either have a DSP coprocessor (which contains a single
40 bit accumulator register), or an iWMMXt coprocessor (which contains
eight 64 bit registers.)

Because of the small amount of state in the DSP coprocessor, access to
the DSP coprocessor (CP0) is always enabled, and DSP context switching
is done unconditionally on every task switch.  Access to the iWMMXt
coprocessor (CP0/CP1) is enabled only when an iWMMXt instruction is
first issued, and iWMMXt context switching is done lazily.

CONFIG_IWMMXT is supposed to mean 'the cpu we will be running on will
have iWMMXt support', but boards are supposed to select this config
symbol by hand, and at least one pxa27x board doesn't get this right,
so on that board, proc-xscale.S will incorrectly assume that we have a
DSP coprocessor, enable CP0 on boot, and we will then only save the
first iWMMXt register (wR0) on context switches, which is Bad.

This patch redefines CONFIG_IWMMXT as 'the cpu we will be running on
might have iWMMXt support, and we will enable iWMMXt context switching
if it does.'  This means that with this patch, running a CONFIG_IWMMXT=n
kernel on an iWMMXt-capable CPU will no longer potentially corrupt iWMMXt
state over context switches, and running a CONFIG_IWMMXT=y kernel on a
non-iWMMXt capable CPU will still do DSP context save/restore.

These changes should make iWMMXt work on PXA3xx, and as a side effect,
enable proper acc0 save/restore on non-iWMMXt capable xsc3 cores such
as IOP13xx and IXP23xx (which will not have CONFIG_CPU_XSCALE defined),
as well as setting and using HWCAP_IWMMXT properly.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2006-12-03 17:52:22 +00:00
..
Kconfig [ARM] 3967/1: xsc3: make branch predication configurable on xsc3 2006-12-01 23:40:37 +00:00
Makefile [ARM] nommu: abort handler fixup for !CPU_CP15_MMU cores. 2006-09-28 20:15:46 +01:00
abort-ev4.S
abort-ev4t.S
abort-ev5t.S
abort-ev5tj.S
abort-ev6.S
abort-lv4t.S [ARM] nommu: abort handler fixup for !CPU_CP15_MMU cores. 2006-09-28 20:15:46 +01:00
abort-macro.S
abort-nommu.S [ARM] nommu: abort handler fixup for !CPU_CP15_MMU cores. 2006-09-28 20:15:46 +01:00
alignment.c [ARM] do_bad_area() always takes current and current->active_mm 2006-09-27 16:13:48 +01:00
cache-v3.S
cache-v4.S [ARM] nommu: manage the CP15 things 2006-09-27 17:34:30 +01:00
cache-v4wb.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cache-v4wt.S
cache-v6.S [ARM] 3356/1: Workaround for the ARM1136 I-cache invalidation problem 2006-03-10 22:26:47 +00:00
consistent.c [ARM] 3942/1: ARM: comment: consistent_sync should not be called directly 2006-11-22 22:45:57 +00:00
context.c [ARM] Move mmu.c out of the way 2006-09-20 14:58:35 +01:00
copypage-v3.S [ARM] Remove LOADREGS macro 2006-06-25 11:23:45 +01:00
copypage-v4mc.c [ARM] Cleanup arch/arm/mm a little 2006-09-20 14:58:35 +01:00
copypage-v4wb.S
copypage-v4wt.S
copypage-v6.c [ARM] Cleanup arch/arm/mm a little 2006-09-20 14:58:35 +01:00
copypage-xsc3.S [ARM] 3377/2: add support for intel xsc3 core 2006-03-28 21:00:40 +01:00
copypage-xscale.c [ARM] Cleanup arch/arm/mm a little 2006-09-20 14:58:35 +01:00
discontig.c
extable.c
fault-armv.c
fault.c [PATCH] pidspace: is_init() 2006-09-29 09:18:12 -07:00
fault.h [ARM] do_bad_area() always takes current and current->active_mm 2006-09-27 16:13:48 +01:00
flush.c [ARM] 3853/1: Fix flush_ptrace_access() thinko for nonaliasing VIPT cache case 2006-09-25 10:34:04 +01:00
init.c [ARM] 3927/1: Allow show_mem() to work with holes in memory map. 2006-11-07 19:39:00 +00:00
iomap.c [ARM] nommu: add stubs for ioremap and friends 2006-06-28 17:59:48 +01:00
ioremap.c [PATCH] arm: it's OK to pass pointer to volatile as iounmap() argument... 2006-10-08 18:50:58 -07:00
mm.h [ARM] Fix nommu build 2006-11-30 13:53:54 +00:00
mmap.c [ARM] 3813/1: prevent >= 4G /dev/mem mmap() 2006-09-25 10:25:26 +01:00
mmu.c [ARM] 3971/1: xsc3: get rid of L_PTE_COHERENT 2006-12-01 23:40:23 +00:00
nommu.c [ARM] Fix nommu build 2006-11-30 13:53:54 +00:00
pgd.c [ARM] Rename mm-armv.c to pgd.c 2006-09-27 15:40:28 +01:00
proc-arm6_7.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm7tdmi.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm9tdmi.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm720.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm740.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm920.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm922.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm925.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm926.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm940.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm946.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm1020.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm1020e.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm1022.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-arm1026.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-macros.S [ARM] nommu: provide a way for correct control register value selection 2006-06-29 15:09:57 +01:00
proc-sa110.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-sa1100.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-syms.c [ARM] 3737/1: Export ARM copy/clear_user_page symbols 2006-07-29 08:29:27 +01:00
proc-v6.S [ARM] Include asm/elf.h instead of asm/procinfo.h 2006-11-30 12:24:46 +00:00
proc-xsc3.S [ARM] 3967/1: xsc3: make branch predication configurable on xsc3 2006-12-01 23:40:37 +00:00
proc-xscale.S [ARM] 3881/4: xscale: clean up cp0/cp1 handling 2006-12-03 17:52:22 +00:00
tlb-v3.S
tlb-v4.S
tlb-v4wb.S
tlb-v4wbi.S
tlb-v6.S