xtensa: adjust boot parameters address when INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX...
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 9 Jun 2013 00:52:11 +0000 (04:52 +0400)
committerChris Zankel <chris@zankel.net>
Mon, 8 Jul 2013 08:18:56 +0000 (01:18 -0700)
commitc5a771d0678f9613e9f89cf1a5bdcfa5b08b225b
treec0d5ae3d94a0edb6edf9f1896ecb31666035d280
parent661b40b0362c16b9969bf018636fb60454f62ee5
xtensa: adjust boot parameters address when INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX is selected

The virtual address of boot parameters chain is passed to the kernel via
a2 register. Adjust it in case it is remapped during MMUv3 -> MMUv2
mapping change, i.e. when it is in the first 128M.

Also fix interpretation of initrd and FDT addresses passed in the boot
parameters: these are physical addresses.

Cc: stable@vger.kernel.org
Reported-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/kernel/head.S
arch/xtensa/kernel/setup.c