* file arch/x86...current.h, definition of per_cpu objects
@ 2012-03-28 6:47 alex ben
0 siblings, 0 replies; only message in thread
From: alex ben @ 2012-03-28 6:47 UTC (permalink / raw)
To: kernelnewbies
As I understand, the macro current in x86 expands to a function
returning the value in current_task, which is defind for each cpu (is
it?), and the segment register %fs points to a descriptor with a base
address of the offset per-cpu, for (this? all?) per-cpu objects..
So, basically we are reading the object current_task + the offset
contained in the base of the percpu (27th in the GDT) segment..
Could somebody elaborate? thanks
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-28 6:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28 6:47 file arch/x86...current.h, definition of per_cpu objects alex ben
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).