diff options
author | Anton Blanchard <anton@samba.org> | 2006-03-27 11:46:18 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-03-28 16:19:52 +1100 |
commit | 2f25194dbe0c4b2472ce133ea3e9bcbb14936ae7 (patch) | |
tree | 4bb2a77da578dafd951ff2bd24ff2fd8c61c0b83 /include/asm-powerpc/processor.h | |
parent | 72533db0121e11811366b5a456f4068d1a4d542c (diff) | |
download | blackbird-op-linux-2f25194dbe0c4b2472ce133ea3e9bcbb14936ae7.tar.gz blackbird-op-linux-2f25194dbe0c4b2472ce133ea3e9bcbb14936ae7.zip |
[PATCH] powerpc: export validate_sp for oprofile calltrace
Export validate_sp so we can use it in the oprofile calltrace code.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/processor.h')
-rw-r--r-- | include/asm-powerpc/processor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-powerpc/processor.h b/include/asm-powerpc/processor.h index a64198fcfd02..57643b5b782f 100644 --- a/include/asm-powerpc/processor.h +++ b/include/asm-powerpc/processor.h @@ -251,6 +251,10 @@ static inline unsigned long __pack_fe01(unsigned int fpmode) #define cpu_relax() barrier() #endif +/* Check that a certain kernel stack pointer is valid in task_struct p */ +int validate_sp(unsigned long sp, struct task_struct *p, + unsigned long nbytes); + /* * Prefetch macros. */ |