[PATCH] powerpc: export validate_sp for oprofile calltrace
[pandora-kernel.git] / include / asm-powerpc / processor.h
index a64198f..57643b5 100644 (file)
@@ -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.
  */