diff options
author | Jon Loeliger <linuxppc@jdl.com> | 2005-09-17 11:39:46 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-18 19:38:50 -0400 |
commit | fbcd54b1e67ffa27f2b2ce087ee300138828d730 (patch) | |
tree | 626a265159b1feed80f72a78b027951d421d64d1 /include/asm-powerpc/sections.h | |
parent | 6c45ab992e4299c869fb26427944a8f8ea177024 (diff) |
[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 @@ | |||
1 | #ifndef _ASM_POWERPC_SECTIONS_H | ||
2 | #define _ASM_POWERPC_SECTIONS_H | ||
3 | |||
4 | #include <asm-generic/sections.h> | ||
5 | |||
6 | #ifdef __powerpc64__ | ||
7 | |||
8 | extern char _end[]; | ||
9 | |||
10 | static inline int in_kernel_text(unsigned long addr) | ||
11 | { | ||
12 | if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end) | ||
13 | return 1; | ||
14 | |||
15 | return 0; | ||
16 | } | ||
17 | |||
18 | #endif | ||
19 | |||
20 | #endif /* _ASM_POWERPC_SECTIONS_H */ | ||