]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8415/1: early fixmap support for earlycon
authorStefan Agner <stefan@agner.ch>
Wed, 12 Aug 2015 23:01:52 +0000 (00:01 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 18 Aug 2015 13:00:29 +0000 (14:00 +0100)
commitf75c136005548740fd77315ceef099a18f141352
tree80905f24141bfc42c6506f65168d0188a2060b69
parente848121ae7f849b13801fcb78be6f018deaa9ad9
ARM: 8415/1: early fixmap support for earlycon

Add early fixmap support, initially to support permanent, fixed
mapping support for early console. A temporary, early pte is
created which is migrated to a permanent mapping in paging_init.
This is also needed since the attributes may change as the memory
types are initialized. The 3MiB range of fixmap spans two pte
tables, but currently only one pte is created for early fixmap
support.

Re-add FIX_KMAP_BEGIN to the index calculation in highmem.c since
the index for kmap does not start at zero anymore. This reverts
c5708b1463ea ("ARM: 8031/1: fixmap: remove FIX_KMAP_BEGIN and
FIX_KMAP_END") to some extent.

Cc: Mark Salter <msalter@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Laura Abbott <lauraa@codeaurora.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/include/asm/fixmap.h
arch/arm/kernel/setup.c
arch/arm/mm/highmem.c
arch/arm/mm/mmu.c