diff options
author | Jon Loeliger <linuxppc@jdl.com> | 2005-09-17 19:39:46 +0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-19 03:38:50 +0400 |
commit | fbcd54b1e67ffa27f2b2ce087ee300138828d730 (patch) | |
tree | 626a265159b1feed80f72a78b027951d421d64d1 /include/asm-powerpc/sections.h | |
parent | 6c45ab992e4299c869fb26427944a8f8ea177024 (diff) | |
download | linux-fbcd54b1e67ffa27f2b2ce087ee300138828d730.tar.xz |
[PATCH] powerpc: Merge simplified sections.h into asm-powerpc
Here is a new patch that removes all notion of the pmac, prep,
chrp and openfirmware initialization sections, and then unifies
the sections.h files without those __pmac, etc, sections identifiers
cluttering things up.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/sections.h')
-rw-r--r-- | include/asm-powerpc/sections.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/asm-powerpc/sections.h b/include/asm-powerpc/sections.h new file mode 100644 index 000000000000..47be2ac2a925 --- /dev/null +++ b/include/asm-powerpc/sections.h @@ -0,0 +1,20 @@ +#ifndef _ASM_POWERPC_SECTIONS_H +#define _ASM_POWERPC_SECTIONS_H + +#include <asm-generic/sections.h> + +#ifdef __powerpc64__ + +extern char _end[]; + +static inline int in_kernel_text(unsigned long addr) +{ + if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end) + return 1; + + return 0; +} + +#endif + +#endif /* _ASM_POWERPC_SECTIONS_H */ |