Hi,
> I'm currently at the start_kernel() routine stuck in an
> infinite loop inside of a call to calibrate_delay(). The kernel is
> spinning inside of while( ticks == jiffies ) in the following snippet
> from init/calibrate.c:
>
> printk(KERN_DEBUG "Calibrating delay loop... ");
> while ((loops_per_jiffy <<= 1) != 0) {
> /* wait for "start of" clock tick */
> ticks = jiffies;
> while (ticks == jiffies)
> /* nothing */;
> /* Go .. */
> ticks = jiffies;
> __delay(loops_per_jiffy);
> ticks = jiffies - ticks;
> if (ticks)
> break;
>
> My problem seems to be that the jiffies variable is not being updated.
> It looks like jiffies is a common value in the kernel and it looks
> like it gets updated somewhere. My question is where do I look in the
> kernel to see how the jiffies variable gets updated?
>
calibrate_delay() evaluates machine speed in the sense that how fast can it do
"nothing". It evaluates how many empty loops get executed before the time
interrupt strikes. I think this is utilized in when in mdelay() etc. The
problem is that you do not seem to be getting timer interrupts.
Thanks,
Rajat
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ