Re: Kernel stack
From: Jan Hudec
Date: Tue Oct 12 2004 - 09:39:35 EST
On Tue, Oct 12, 2004 at 15:30:34 +0100, Jon Masters wrote:
> On Tue, 12 Oct 2004 11:41:04 +0200, Jan Hudec <bulb@xxxxxx> wrote:
>
> > The base of the stack does not have to be stored either, because it is
> > AT FIXED OFFSET from the task_struct! If you don't believe me, look at
> > definition of the current macro. It says just (%esp & ~8195) (it says it
> > in assembly, because you can't directly access registers from C, and it
> > uses some macros that mean "two pages" instead of 8195).
>
> The pedant in me wants to point out that 8K is 0-8191 and not 0-8195 :-)
OOPS, a braino ;-).
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@xxxxxx>
Attachment:
signature.asc
Description: Digital signature