From: Ashlesha Shintre <ashlesha@kenati.com>
To: mlachwani <mlachwani@mvista.com>
Cc: linux-mips@linux-mips.org
Subject: Re: calibrate_delay function
Date: Tue, 10 Oct 2006 16:34:30 -0700 [thread overview]
Message-ID: <1160523270.8185.4.camel@sandbar.kenati.com> (raw)
In-Reply-To: <452C20FC.6000705@mvista.com>
> > start_kernel() calls calibrate_delay() which can be found in
> > init/calibrate.c
Thanks, I did find it and put in a few printk s to debug the problem.
i have pasted part of the calibrate_delay function where the kernel gets stuck..
It is getting stuck at the second while loop where it goes into an infinite loop!
the value of ash_count keeps incrementing and thats all i see in the log buffer!
i can see why the kernel is stuck -- its because ticks=jiffies is the command just before infinitely looping based on the condition that ticks==jiffies!
Am I not looking in the right place?
Regards,
Ashlesha.
> printk(KERN_DEBUG "Calibrating delay loop... ");
> while ((loops_per_jiffy <<= 1) != 0) {
> printk("within the while loop\n");
> /* wait for "start of" clock tick */
> ticks = jiffies;
> while (ticks == jiffies)
> printk("%d\n",++ash_count);
> /* nothing ; infinite loop, control never comes out of here*/
> /* Go .. */
On Tue, 2006-10-10 at 15:38 -0700, mlachwani wrote:
> Ashlesha Shintre wrote:
> > Hi,
> > I m working on the Encore M3 board that has the AU1500 MIPS processor on
> > it. I aim to port the 2.6 linux kernel to the board which is already
> > supported in the 2.4 kernel.
> >
> > The start_kernel function in linux/init/main.c file, calls a function
> > calibrate_delay found in the arch/frv/kernel/setup.c file. Why does the
> > kernel call this function which is a part of the Fujitsu FR-V
> > architecture?
> >
> > When I build the image, this is the point where the kernel is stuck and
> > the last contents of the log buffer show the following printk message
> > from the calibrate_delay function:
> >
> >
> >
> >> Calibrating delay loop...
> >>
> >
> > Thanks,
> > Ashlesha.
> >
> >
> >
> >
> >
> > start_kernel() calls calibrate_delay() which can be found in
> > init/calibrate.c
> >
> thanks,
> Manish Lachwani
next prev parent reply other threads:[~2006-10-10 23:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-10 22:43 calibrate_delay function Ashlesha Shintre
2006-10-10 22:38 ` mlachwani
2006-10-10 23:34 ` Ashlesha Shintre [this message]
2006-10-10 23:30 ` mlachwani
2006-10-11 1:07 ` Ashlesha Shintre
2006-10-11 17:52 ` Ashlesha Shintre
2006-10-10 23:35 ` Ricardo Mendoza
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1160523270.8185.4.camel@sandbar.kenati.com \
--to=ashlesha@kenati.com \
--cc=linux-mips@linux-mips.org \
--cc=mlachwani@mvista.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox