git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vserver 2.0 rc7
[linux-2.6.git]
/
include
/
asm-ppc64
/
sections.h
diff --git
a/include/asm-ppc64/sections.h
b/include/asm-ppc64/sections.h
index
95bac41
..
308ca6f
100644
(file)
--- a/
include/asm-ppc64/sections.h
+++ b/
include/asm-ppc64/sections.h
@@
-17,4
+17,13
@@
extern char _end[];
#define __openfirmware
#define __openfirmwaredata
+
+static inline int in_kernel_text(unsigned long addr)
+{
+ if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end)
+ return 1;
+
+ return 0;
+}
+
#endif