1 /* 2 * Copyright 2004-2009 Analog Devices Inc. 3 * 4 * Licensed under the GPL-2 or later. 5 */ 6 7 #ifndef _BLACKFIN_PAGE_H 8 #define _BLACKFIN_PAGE_H 9 10 #define ARCH_PFN_OFFSET (CONFIG_PHY_RAM_BASE_ADDRESS >> PAGE_SHIFT) 11 #define MAP_NR(addr) ((unsigned long)(addr) >> PAGE_SHIFT) 12 13 #define VM_DATA_DEFAULT_FLAGS \ 14 (VM_READ | VM_WRITE | \ 15 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \ 16 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 17 18 #include <asm-generic/page.h> 19 #include <asm-generic/memory_model.h> 20 #include <asm-generic/getorder.h> 21 22 #endif 23