Skip to contentSkip to conversation

Initialization order problem

DISCUSSION Christian Kandeler 1 participant 1 message Jul 14, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I've spotted the following problem: In function start_kernel() (file init/main.c), there are two calls to printk(), followed by setup_arch(). However, if the kernel is configured to use timing information on calls to printk(), then printk() will call cpu_clock(), which uses per-cpu data. For ia64, the physical address for the per-cpu data is kept in ar.k3, which is only initialized in cpu_init(), which is called by setup_arch(), i.e. AFTER the calls to printk().

Regards,
Christian Kandeler