Variable "current" in Linux kernel...

Andreas Schwab schwab at suse.de
Tue Apr 17 08:53:38 EST 2007


"Siva Prasad" <sprasad at bivio.net> writes:

> I would like to know where exactly the value of variable "current" gets
> changed.

In _switch (see arch/powerpc/kernel/entry_{32,64}.S).  For ppc32, current
is always in r2.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab at suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Linuxppc-embedded mailing list