summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/page.h
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2006-05-09 16:00:59 +1000
committerPaul Mackerras <paulus@samba.org>2006-05-09 16:00:59 +1000
commite4de00215c3af02116db3d486bf53700dfe10619 (patch)
tree86a77c315a31ea7fb27e14b5c446a92e8ce1e615 /include/asm-ppc/page.h
parente515f048c46e457ef61ce9c8b56bd36e825a48a0 (diff)
downloadblackbird-op-linux-e4de00215c3af02116db3d486bf53700dfe10619.tar.gz
blackbird-op-linux-e4de00215c3af02116db3d486bf53700dfe10619.zip
powerpc/32: Define an is_kernel_addr() to fix ARCH=ppc compilation
My commit 6bfd93c32a5065d0e858780b3beb0b667081601c broke the ARCH=ppc compilation by using the is_kernel_addr() macro in asm/uaccess.h. This fixes it by defining a suitable is_kernel_addr() for ARCH=ppc. Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc/page.h')
-rw-r--r--include/asm-ppc/page.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-ppc/page.h b/include/asm-ppc/page.h
index a70ba2ee552d..0fb68a0b0181 100644
--- a/include/asm-ppc/page.h
+++ b/include/asm-ppc/page.h
@@ -20,6 +20,7 @@
/* 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__
OpenPOWER on IntegriCloud