summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-sa1100/mmzone.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/arch-sa1100/mmzone.h')
-rw-r--r--include/asm-arm/arch-sa1100/mmzone.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-arm/arch-sa1100/mmzone.h b/include/asm-arm/arch-sa1100/mmzone.h
index b7abea6f7..c721a1d55 100644
--- a/include/asm-arm/arch-sa1100/mmzone.h
+++ b/include/asm-arm/arch-sa1100/mmzone.h
@@ -79,3 +79,5 @@ extern pg_data_t sa1100_node_data[];
(((unsigned long)ADDR_TO_MAPBASE((kaddr)) - PAGE_OFFSET) / \
sizeof(mem_map_t)))
+#define virt_to_page(kaddr) (mem_map + MAP_NR(kaddr))
+#define VALID_PAGE(page) ((page - mem_map) < max_mapnr)