From 4e24b66f00708bdceb7b0923c55df0e0df2406b4 Mon Sep 17 00:00:00 2001 From: Yoshinori Sato Date: Fri, 1 Jan 2016 20:21:33 +0900 Subject: [PATCH] rx: Add missing macros Signed-off-by: Yoshinori Sato --- arch/rx/include/asm/pgtable.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/rx/include/asm/pgtable.h b/arch/rx/include/asm/pgtable.h index 96b268063797..450fd40f2a4c 100644 --- a/arch/rx/include/asm/pgtable.h +++ b/arch/rx/include/asm/pgtable.h @@ -19,8 +19,17 @@ void paging_init(void); #define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) +#define kern_addr_valid(addr) (1) +#define pgprot_writecombine(prot) (prot) +#define pgprot_noncached pgprot_writecombine static inline int pte_file(pte_t pte) { return 0; } +#define swapper_pg_dir ((pgd_t *) 0) +/* + * ZERO_PAGE is a global shared page that is always zero: used + * for zero-mapped memory areas etc.. + */ +#define ZERO_PAGE(vaddr) (virt_to_page(0)) /* * All 32bit addresses are effectively valid for vmalloc... -- 2.11.0