alistair23-linux/arch/xtensa/kernel
Max Filippov e85e335f8f xtensa: add MMU v3 support
MMUv3 comes out of reset with identity vaddr -> paddr mapping in the TLB
way 6:

Way 6 (512 MB)
        Vaddr       Paddr       ASID  Attr RWX Cache
        ----------  ----------  ----  ---- --- -------
        0x00000000  0x00000000  0x01  0x03 RWX Bypass
        0x20000000  0x20000000  0x01  0x03 RWX Bypass
        0x40000000  0x40000000  0x01  0x03 RWX Bypass
        0x60000000  0x60000000  0x01  0x03 RWX Bypass
        0x80000000  0x80000000  0x01  0x03 RWX Bypass
        0xa0000000  0xa0000000  0x01  0x03 RWX Bypass
        0xc0000000  0xc0000000  0x01  0x03 RWX Bypass
        0xe0000000  0xe0000000  0x01  0x03 RWX Bypass

This patch adds remapping code at the reset vector or at the kernel
_start (depending on CONFIG_INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX) that
reconfigures MMUv3 as MMUv2:

Way 5 (128 MB)
        Vaddr       Paddr       ASID  Attr RWX Cache
        ----------  ----------  ----  ---- --- -------
        0xd0000000  0x00000000  0x01  0x07 RWX WB
        0xd8000000  0x00000000  0x01  0x03 RWX Bypass
Way 6 (256 MB)
        Vaddr       Paddr       ASID  Attr RWX Cache
        ----------  ----------  ----  ---- --- -------
        0xe0000000  0xf0000000  0x01  0x07 RWX WB
        0xf0000000  0xf0000000  0x01  0x03 RWX Bypass

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
2013-05-09 01:07:09 -07:00
..
align.S xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
asm-offsets.c xtensa: add support for TLS 2013-02-23 19:35:57 -08:00
coprocessor.S xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
entry.S xtensa: add support for TLS 2013-02-23 19:35:57 -08:00
head.S xtensa: add MMU v3 support 2013-05-09 01:07:09 -07:00
irq.c xtensa: add device trees support 2012-12-18 21:10:23 -08:00
Makefile xtensa: add MMU v3 support 2013-05-09 01:07:09 -07:00
module.c xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
pci-dma.c
pci.c Xtensa patchset for 3.7 2012-10-09 16:11:46 +09:00
platform.c xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
process.c xtensa: add support for TLS 2013-02-23 19:35:57 -08:00
ptrace.c xtensa: add support for TLS 2013-02-23 19:35:57 -08:00
setup.c xtensa: dispatch medium-priority interrupts 2013-02-23 19:12:52 -08:00
signal.c Changes for arch/xtensa for the 3.9 merge window. 2013-02-26 19:53:12 -08:00
syscall.c xtensa: avoid mmap cache aliasing 2013-02-23 19:12:53 -08:00
time.c xtensa: add IRQ domains support 2012-12-18 21:10:23 -08:00
traps.c Changes for arch/xtensa for the 3.9 merge window. 2013-02-26 19:53:12 -08:00
vectors.S xtensa: add MMU v3 support 2013-05-09 01:07:09 -07:00
vmlinux.lds.S xtensa: add MMU v3 support 2013-05-09 01:07:09 -07:00
xtensa_ksyms.c xtensa: fix oprofile building as module 2013-05-09 01:07:09 -07:00