RE: [patch] per cpu MCA/INIT save areas (take 2)

Luck, Tony
2004-11-18T22:18:30Z

>I'm happy with k3, too. What is the status of the patch?
>If I need to make changes to get the patch accepted, I will.
>Otherwise, I'll get the next patch, building on this patch,
>ready to go.

The patch is not quite how I had envsioned it. I'd thought that
you were going to point ar.k3 at the physical base of the whole percpu
area, not just at the data structure for the mca/init parts.
Then sprinkle in some syntactic sugar macros to access per-cpu
variables. That way you can just use:

DECLARE_PER_CPU(type, yourname);

to declare anything that you need replicated for each cpu (unless
they all add up to more than 64k ... then we'd have to do something
to make the bigger items just pointers in per_cpu space, and make
sure the actual space is allocated when cpus are found).

Using these in assembler comes down to computing

ar.k3 + (&per_cpu__yourname - &__per_cpu_start)

Does that make sense?

-Tony