[ARM] Set bit 4 on section mappings correctly depending on CPU
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 29 Jun 2006 17:24:21 +0000 (18:24 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 29 Jun 2006 17:24:21 +0000 (18:24 +0100)
commit8799ee9f49f6171fd58f4d64f8c067ca49006a5d
treeb746b8800bc99633f31505d151624c8ccd75cd47
parent326764a85b7676388db3ebad6488f312631d7661
[ARM] Set bit 4 on section mappings correctly depending on CPU

On some CPUs, bit 4 of section mappings means "update the
cache when written to".  On others, this bit is required to
be one, and others it's required to be zero.  Finally, on
ARMv6 and above, setting it turns on "no execute" and prevents
speculative prefetches.

With all these combinations, no one value fits all CPUs, so we
have to pick a value depending on the CPU type, and the area
we're mapping.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
20 files changed:
arch/arm/kernel/asm-offsets.c
arch/arm/kernel/head.S
arch/arm/mm/mm-armv.c
arch/arm/mm/proc-arm1020.S
arch/arm/mm/proc-arm1020e.S
arch/arm/mm/proc-arm1022.S
arch/arm/mm/proc-arm1026.S
arch/arm/mm/proc-arm6_7.S
arch/arm/mm/proc-arm720.S
arch/arm/mm/proc-arm920.S
arch/arm/mm/proc-arm922.S
arch/arm/mm/proc-arm925.S
arch/arm/mm/proc-arm926.S
arch/arm/mm/proc-sa110.S
arch/arm/mm/proc-sa1100.S
arch/arm/mm/proc-v6.S
arch/arm/mm/proc-xsc3.S
arch/arm/mm/proc-xscale.S
include/asm-arm/pgtable-hwdef.h
include/asm-arm/procinfo.h