Skip to content

Commit

Permalink
powerpc/32: Define an is_kernel_addr() to fix ARCH=ppc compilation
Browse files Browse the repository at this point in the history
My commit 6bfd93c 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>
  • Loading branch information
Paul Mackerras committed May 9, 2006
1 parent e515f04 commit e4de002
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/asm-ppc/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__

Expand Down

0 comments on commit e4de002

Please sign in to comment.