OSDN Git Service

riscv: Introduce huge page support for 32/64bit kernel
authorAlexandre Ghiti <alex@ghiti.fr>
Sun, 26 May 2019 12:50:38 +0000 (08:50 -0400)
committerPaul Walmsley <paul.walmsley@sifive.com>
Wed, 3 Jul 2019 22:23:38 +0000 (15:23 -0700)
commit9e953cda5cdf1c230a3c9b7fc4d5e94f15885a9b
treeb3f437ffbfa33f52497f1bd80a62c31d9799284e
parent3876d4a38ae22bb56311abf5ea418eac46090c00
riscv: Introduce huge page support for 32/64bit kernel

This patch implements both 4MB huge page support for 32bit kernel
and 2MB/1GB huge pages support for 64bit kernel.

Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
arch/riscv/Kconfig
arch/riscv/include/asm/hugetlb.h [new file with mode: 0644]
arch/riscv/include/asm/page.h
arch/riscv/include/asm/pgtable.h
arch/riscv/mm/Makefile
arch/riscv/mm/hugetlbpage.c [new file with mode: 0644]