提交 e4de0021 编写于 作者: P 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: NPaul Mackerras <paulus@samba.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册