Re: [PATCH] show_task() and thread_saved_pc() fix for x86

From: Alexander Viro (viro@math.psu.edu)
Date: Sat Nov 11 2000 - 22:23:48 EST


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/



This archive was generated by hypermail 2b29 : Wed Nov 15 2000 - 21:00:21 EST