[PATCH v2] riscv: set max_pfn to the PFN of the last page