RISC-V: Implement compile-time fixed mappings
authorAnup Patel <anup.patel@wdc.com>
Mon, 7 Jan 2019 15:27:01 +0000 (20:57 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 21 Feb 2019 05:56:42 +0000 (11:26 +0530)
commitf2c17aabc917e1092eedb16fa2b8891e9379f7e6
tree263b4020a36643cbc07ede2630e67f60801550bd
parent6f1e9e946f0bc32cf55a7d7c36f80cb365e1877a
RISC-V: Implement compile-time fixed mappings

This patch implements compile-time virtual to physical mappings. These
compile-time fixed mappings can be used by earlycon, ACPI, and early
ioremap for creating fixed mappings when FIX_EARLYCON_MEM=y.

To start with, we have enabled compile-time fixed mappings for earlycon.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/Kconfig
arch/riscv/include/asm/fixmap.h [new file with mode: 0644]
arch/riscv/mm/init.c