lkml.org 
[lkml]   [2000]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] show_task() and thread_saved_pc() fix for x86


On Sat, 11 Nov 2000, Alexander Viro wrote:

> I would probably turn it into
> unsigned long *ebp = *((unsigned long **)t->esp);

ebp++; /* We want return address, not the previous frame pointer */

> /* Bits 0,1 and 13..31 must be shared with the stack base */
> if (((unsigned long)ebp ^ (unsigned long)t) & ~(2*PAGE_SIZE-4))
> return 0;
>
> return *ebp;

Sorry.
Cheers,
Al

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.039 / U:9.388 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site