]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: fix boot parameters address translation
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 14 Nov 2018 07:46:42 +0000 (23:46 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 14 Nov 2018 08:15:32 +0000 (00:15 -0800)
commitafc5383e2a55a95303eae4f0fce07ffab4d355c3
tree475126b58c8d9ba2dcd700c1f396282021ed5b23
parent258d6f41a70b28fb07f7de64c1d1d29d1a9b0c72
xtensa: fix boot parameters address translation

The bootloader may pass physical address of the boot parameters structure
to the MMUv3 kernel in the register a2. Code in the _SetupMMU block in
the arch/xtensa/kernel/head.S is supposed to map that physical address to
the virtual address in the configured virtual memory layout.

This code haven't been updated when additional 256+256 and 512+512
memory layouts were introduced and it may produce wrong addresses when
used with these layouts.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/head.S