]> err.no Git - linux-2.6/blobdiff - include/asm-ppc/page.h
[PATCH] poison: add & use more constants
[linux-2.6] / include / asm-ppc / page.h
index a70ba2ee552d8f4f722aa87d19597155fb9ff4f9..0b19af82507ff25b8793694c79fef18632185cab 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef _PPC_PAGE_H
 #define _PPC_PAGE_H
 
-#include <linux/config.h>
 #include <asm/asm-compat.h>
 
 /* PAGE_SHIFT determines the page size */
 #define PAGE_MASK      (~((1 << PAGE_SHIFT) - 1))
 
 #ifdef __KERNEL__
-#include <linux/config.h>
 
 /* This must match what is in arch/ppc/Makefile */
 #define PAGE_OFFSET    CONFIG_KERNEL_START
 #define KERNELBASE     PAGE_OFFSET
+#define is_kernel_addr(x)      ((x) >= PAGE_OFFSET)
 
 #ifndef __ASSEMBLY__