yhlu yinghailu@gmail.com writes:
use max_lapicid() + 1 as apicid_base is not good.
esp for apic id lifting.
for 8 way dual core system, max_lapicid() will be 0x0f with lifting, and with lifting it will be 0x1f.
The x86 standard is now is tuples of (nodeid, coreid) which means on k8 based systems the cpu apicids will always be densly packed. I haven't seen the reference but I have been assured that is the way things are working. I believe it was Richard Breuner assured me of this
In addition in the code cleanups that have been us only use the (nodeid, coreid) as supporting multiple form simultaneously is both confusing, and creates code that is hard to maintain.
Eric