Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24638
b: refs/heads/master
c: 2f25194
h: refs/heads/master
v: v3
  • Loading branch information
Anton Blanchard authored and Paul Mackerras committed Mar 28, 2006
1 parent 401465e commit 2410aa1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72533db0121e11811366b5a456f4068d1a4d542c
refs/heads/master: 2f25194dbe0c4b2472ce133ea3e9bcbb14936ae7
4 changes: 3 additions & 1 deletion trunk/arch/powerpc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ int sys_execve(unsigned long a0, unsigned long a1, unsigned long a2,
return error;
}

static int validate_sp(unsigned long sp, struct task_struct *p,
int validate_sp(unsigned long sp, struct task_struct *p,
unsigned long nbytes)
{
unsigned long stack_page = (unsigned long)task_stack_page(p);
Expand Down Expand Up @@ -808,6 +808,8 @@ static int validate_sp(unsigned long sp, struct task_struct *p,
#define FRAME_MARKER 2
#endif

EXPORT_SYMBOL(validate_sp);

unsigned long get_wchan(struct task_struct *p)
{
unsigned long ip, sp;
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/asm-powerpc/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 2410aa1

Please sign in to comment.