mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question regarding switch_to on x86
@ 2004-05-07 19:44 read lkml
  2004-05-08 14:14 ` Brian Gerst
  0 siblings, 1 reply; 2+ messages in thread
From: read lkml @ 2004-05-07 19:44 UTC (permalink / raw)
  To: linux-kernel

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


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question regarding switch_to on x86
  2004-05-07 19:44 Question regarding switch_to on x86 read lkml
@ 2004-05-08 14:14 ` Brian Gerst
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Gerst @ 2004-05-08 14:14 UTC (permalink / raw)
  To: read lkml; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-08 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-07 19:44 Question regarding switch_to on x86 read lkml
2004-05-08 14:14 ` Brian Gerst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome