Commit e4de0021 authored by Paul Mackerras's avatar Paul Mackerras

powerpc/32: Define an is_kernel_addr() to fix ARCH=ppc compilation

My commit 6bfd93c3 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: default avatarPaul Mackerras <paulus@samba.org>
parent e515f048
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
/* This must match what is in arch/ppc/Makefile */ /* This must match what is in arch/ppc/Makefile */
#define PAGE_OFFSET CONFIG_KERNEL_START #define PAGE_OFFSET CONFIG_KERNEL_START
#define KERNELBASE PAGE_OFFSET #define KERNELBASE PAGE_OFFSET
#define is_kernel_addr(x) ((x) >= PAGE_OFFSET)
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment