X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=include%2Fasm-arm%2Fpage.h;h=7e85db77d99b12f635514a7c84e9b8c713064af4;hb=25f4a81ef51b7c279786f5b81fe6d89510f46d99;hp=416320d95419579178b82ea6aba75a381be7e706;hpb=da2b1cd61903c8e9796e76be2d606584f26a78e5;p=safe%2Fjmp%2Flinux-2.6 diff --git a/include/asm-arm/page.h b/include/asm-arm/page.h index 416320d..7e85db7 100644 --- a/include/asm-arm/page.h +++ b/include/asm-arm/page.h @@ -10,20 +10,25 @@ #ifndef _ASMARM_PAGE_H #define _ASMARM_PAGE_H -#include + +#ifdef __KERNEL__ /* 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 /* @@ -40,6 +45,7 @@ * v4wb - ARMv4 with writeback cache, without minicache * v4_mc - ARMv4 with minicache * xscale - Xscale + * xsc3 - XScalev3 */ #undef _USER #undef MULTI_USER @@ -84,6 +90,14 @@ # 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 @@ -160,8 +174,7 @@ typedef unsigned long pgprot_t; #endif /* STRICT_MM_TYPECHECKS */ -/* the upper-most page table pointer */ -extern pmd_t *top_pmd; +#endif /* CONFIG_MMU */ #include @@ -177,8 +190,8 @@ extern pmd_t *top_pmd; #define ARCH_SLAB_MINALIGN 8 #endif -#endif /* __KERNEL__ */ - #include +#endif /* __KERNEL__ */ + #endif