|
@@ -0,0 +1,55 @@
|
|
|
+/* pgtable.h: FR-V page table mangling
|
|
|
+ *
|
|
|
+ * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
|
|
|
+ * Written by David Howells (dhowells@redhat.com)
|
|
|
+ *
|
|
|
+ * This program is free software; you can redistribute it and/or
|
|
|
+ * modify it under the terms of the GNU General Public License
|
|
|
+ * as published by the Free Software Foundation; either version
|
|
|
+ * 2 of the License, or (at your option) any later version.
|
|
|
+ *
|
|
|
+ * Derived from:
|
|
|
+ * include/asm-m68knommu/pgtable.h
|
|
|
+ * include/asm-i386/pgtable.h
|
|
|
+ */
|
|
|
+
|
|
|
+#ifndef _ASM_PGTABLE_H
|
|
|
+#define _ASM_PGTABLE_H
|
|
|
+
|
|
|
+#include <asm/mem-layout.h>
|
|
|
+#include <asm/setup.h>
|
|
|
+#include <asm/processor.h>
|
|
|
+
|
|
|
+#ifndef __ASSEMBLY__
|
|
|
+#include <linux/threads.h>
|
|
|
+#include <linux/slab.h>
|
|
|
+#include <linux/list.h>
|
|
|
+#include <linux/spinlock.h>
|
|
|
+#include <linux/sched.h>
|
|
|
+struct vm_area_struct;
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef __ASSEMBLY__
|
|
|
+#if defined(CONFIG_HIGHPTE)
|
|
|
+typedef unsigned long pte_addr_t;
|
|
|
+#else
|
|
|
+typedef pte_t *pte_addr_t;
|
|
|
+#endif
|
|
|
+#endif
|
|
|
+
|
|
|
+/*****************************************************************************/
|
|
|
+/*
|
|
|
+ * MMU-less operation case first
|
|
|
+ */
|
|
|
+#ifndef CONFIG_MMU
|
|
|
+
|
|
|
+#define pgd_present(pgd) (1) /* pages are always present on NO_MM */
|
|
|
+#define pgd_none(pgd) (0)
|
|
|
+#define pgd_bad(pgd) (0)
|
|
|
+#define pgd_clear(pgdp)
|
|
|
+#define kern_addr_valid(addr) (1)
|
|
|
+#define pmd_offset(a, b) ((void *) 0)
|
|
|
+
|
|
|
+#define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */
|
|
|
+#define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */
|
|
|
+#define PAGE_COPY __pgprot(0) /* these mean nothing to NO_MM */
|