#ifndef _CRIS_PGTABLE_H
#define _CRIS_PGTABLE_H
+#ifndef __ASSEMBLY__
#include <linux/config.h>
#include <linux/sched.h>
#include <asm/mmu.h>
+#endif
#include <asm/arch/pgtable.h>
/*
* This file contains the functions and defines necessary to modify and use
* the CRIS page table tree.
*/
-
+#ifndef __ASSEMBLY__
extern void paging_init(void);
+#endif
/* Certain architectures need to do special things when pte's
* within a page table are directly modified. Thus, the following
#define FIRST_USER_PGD_NR 0
/* zero page used for uninitialized stuff */
+#ifndef __ASSEMBLY__
extern unsigned long empty_zero_page;
#define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page))
+#endif
/* number of bits that fit into a memory pointer */
#define BITS_PER_PTR (8*sizeof(unsigned long))
#define pmd_present(x) (pmd_val(x) & _PAGE_PRESENT)
#define pmd_clear(xp) do { pmd_val(*(xp)) = 0; } while (0)
+#ifndef __ASSEMBLY__
+
/*
* The "pgd_xxx()" functions here are trivial for a folded two-level
* setup: the pgd is never bad, and a pmd always exists (as it's folded
#define pte_to_pgoff(x) (pte_val(x) >> 6)
#define pgoff_to_pte(x) __pte(((x) << 6) | _PAGE_FILE)
-typedef pte_t *pte_addr_t;
-
+#endif /* __ASSEMBLY__ */
#endif /* _CRIS_PGTABLE_H */