diff --git a/arch/riscv/include/asm/page.h b/arch/riscv/include/asm/page.h index 6e4d84d25651..a82bf1a2e763 100644 --- a/arch/riscv/include/asm/page.h +++ b/arch/riscv/include/asm/page.h @@ -112,7 +112,7 @@ typedef struct page *pgtable_t; * We override this value as its generic definition uses __pa too early in * the boot process (before kernel_map.va_pa_offset is set). */ -#define MIN_MEMBLOCK_ADDR 0 +#define MIN_MEMBLOCK_ADDR 0x200000 #endif #ifdef CONFIG_MMU diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h index c75131d3b13e..24ee16dab110 100644 --- a/arch/riscv/include/asm/pgtable.h +++ b/arch/riscv/include/asm/pgtable.h @@ -345,7 +345,7 @@ static inline unsigned long pte_pfn(pte_t pte) #define pte_page(x) pfn_to_page(pte_pfn(x)) /* Constructs a page table entry */ -static inline pte_t pfn_pte(unsigned long pfn, pgprot_t prot) +static inline pte_t pfn_pte(xlen_t pfn, pgprot_t prot) { ptval_t prot_val = pgprot_val(prot);