lkml.org 
[lkml]   [2004]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question regarding switch_to on x86
read lkml wrote:
> Hi,
>
> Could anyone please explain to me (or point me to some
> documentation) the need for the 3rd argument in the
> switch_to macro on x86? Why is it
> switch_to(prev, next, last)? how are prev and last
> different?
>
> Thanks
>

last is actually a return value. Since switch_to() switches stacks,
last must be passed through in a register.

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

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.033 / U:0.924 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site