X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=include%2Fasm-arm%2Fpage.h;fp=include%2Fasm-arm%2Fpage.h;h=416320d95419579178b82ea6aba75a381be7e706;hp=b779c2017c4a34d4b15ab2152cebcc44944e32da;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c diff --git a/include/asm-arm/page.h b/include/asm-arm/page.h index b779c2017..416320d95 100644 --- a/include/asm-arm/page.h +++ b/include/asm-arm/page.h @@ -10,25 +10,20 @@ #ifndef _ASMARM_PAGE_H #define _ASMARM_PAGE_H - -#ifdef __KERNEL__ +#include /* PAGE_SHIFT determines the page size */ #define PAGE_SHIFT 12 #define PAGE_SIZE (1UL << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE-1)) +#ifdef __KERNEL__ + /* to align the pointer to the (next) page boundary */ #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) #ifndef __ASSEMBLY__ -#ifndef CONFIG_MMU - -#include "page-nommu.h" - -#else - #include /* @@ -45,7 +40,6 @@ * v4wb - ARMv4 with writeback cache, without minicache * v4_mc - ARMv4 with minicache * xscale - Xscale - * xsc3 - XScalev3 */ #undef _USER #undef MULTI_USER @@ -90,14 +84,6 @@ # endif #endif -#ifdef CONFIG_CPU_XSC3 -# ifdef _USER -# define MULTI_USER 1 -# else -# define _USER xsc3_mc -# endif -#endif - #ifdef CONFIG_CPU_COPY_V6 # define MULTI_USER 1 #endif @@ -177,8 +163,6 @@ typedef unsigned long pgprot_t; /* the upper-most page table pointer */ extern pmd_t *top_pmd; -#endif /* CONFIG_MMU */ - #include #endif /* !__ASSEMBLY__ */ @@ -193,10 +177,8 @@ extern pmd_t *top_pmd; #define ARCH_SLAB_MINALIGN 8 #endif -#include - -#define devmem_is_allowed(x) 1 - #endif /* __KERNEL__ */ +#include + #endif