patch-2.4.22 linux-2.4.22/include/asm-arm/page.h
Next file: linux-2.4.22/include/asm-arm/pci.h
Previous file: linux-2.4.22/include/asm-arm/mmu_context.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
2003-08-25 04:44:43.000000000 -0700
- Orig file:
linux-2.4.21/include/asm-arm/page.h
- Orig date:
2002-08-02 17:39:45.000000000 -0700
diff -urN linux-2.4.21/include/asm-arm/page.h linux-2.4.22/include/asm-arm/page.h
@@ -95,17 +95,11 @@
#endif /* !__ASSEMBLY__ */
#include <linux/config.h>
-#include <asm/arch/memory.h>
+#include <asm/memory.h>
-#define __pa(x) __virt_to_phys((unsigned long)(x))
-#define __va(x) ((void *)__phys_to_virt((unsigned long)(x)))
+#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
+ VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
-#ifndef CONFIG_DISCONTIGMEM
-#define virt_to_page(kaddr) (mem_map + (__pa(kaddr) >> PAGE_SHIFT) - \
- (PHYS_OFFSET >> PAGE_SHIFT))
-#define VALID_PAGE(page) ((page - mem_map) < max_mapnr)
-#endif
-
-#endif
+#endif /* __KERNEL__ */
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)