patch-2.4.0-test7 linux/include/asm-arm/pgtable.h
Next file: linux/include/asm-arm/proc-armo/assembler.h
Previous file: linux/include/asm-arm/pgalloc.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Sun Aug 13 09:54:15 2000
- Orig file:
v2.4.0-test6/linux/include/asm-arm/pgtable.h
- Orig date:
Wed Aug 9 19:19:51 2000
diff -u --recursive --new-file v2.4.0-test6/linux/include/asm-arm/pgtable.h linux/include/asm-arm/pgtable.h
@@ -7,7 +7,6 @@
#include <linux/config.h>
#include <asm/arch/memory.h>
#include <asm/proc-fns.h>
-#include <asm/system.h>
/*
* PMD_SHIFT determines the size of the area a second-level page table can map
@@ -80,7 +79,8 @@
#define pte_clear(ptep) set_pte((ptep), __pte(0))
#ifndef CONFIG_DISCONTIGMEM
-#define pte_page(x) (mem_map + (unsigned long)(((pte_val(pte) - PHYS_OFFSET) >> PAGE_SHIFT)))
+#define pte_page(x) (mem_map + (pte_val((x)) >> PAGE_SHIFT) - \
+ (PHYS_OFFSET >> PAGE_SHIFT))
#else
/*
* I'm not happy with this - we needlessly convert a physical address
@@ -88,7 +88,7 @@
* which, if __va and __pa are expensive causes twice the expense for
* zero gain. --rmk
*/
-#define pte_page(x) (mem_map + MAP_NR(__va(pte_val(pte))))
+#define pte_page(x) (mem_map + MAP_NR(__va(pte_val((x)))))
#endif
#define pmd_none(pmd) (!pmd_val(pmd))
@@ -172,9 +172,6 @@
#define module_map vmalloc
#define module_unmap vfree
-
-/* Needs to be defined here and not in linux/mm.h, as it is arch dependent */
-#define PageSkip(page) (machine_is_riscpc() && test_bit(PG_skip, &(page)->flags))
#define io_remap_page_range remap_page_range
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)