summaryrefslogtreecommitdiff
path: root/include/asm-powerpc/sections.h
diff options
context:
space:
mode:
authorJon Loeliger <linuxppc@jdl.com>2005-09-17 19:39:46 +0400
committerPaul Mackerras <paulus@samba.org>2005-09-19 03:38:50 +0400
commitfbcd54b1e67ffa27f2b2ce087ee300138828d730 (patch)
tree626a265159b1feed80f72a78b027951d421d64d1 /include/asm-powerpc/sections.h
parent6c45ab992e4299c869fb26427944a8f8ea177024 (diff)
downloadlinux-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.h20
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 */