Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: ashlesha@kenati.com
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>, linux-mips@linux-mips.org
Subject: Re: console stuck
Date: Sat, 09 Dec 2006 19:55:39 +0300	[thread overview]
Message-ID: <457AEA8B.9030605@ru.mvista.com> (raw)
In-Reply-To: <1165630940.7860.7.camel@sandbar.kenati.com>

Hello.

Ashlesha Shintre wrote:
> Hi,

> I m very much confused as to why there is an infinite loop in the
> __request_resource function in the linux/kernel/resource.c file?

    It has 2 exit points (return statements).

> The serial console is getting stuck at this point.

    Then there's something very wrong with your resources...

>>for (;;) {
>>                tmp = *p;
>>                if (!tmp || tmp->start > end) {
>>                        new->sibling = tmp;
>>                        *p = new;
>>                        new->parent = root;
>>                        return NULL;
>>                }
>>                p = &tmp->sibling;
>>                if (tmp->end < start){
>>                        printk("tmp->end = %d\n",tmp->end);
>>                        printk("tmp->start = %d\n",tmp->start);
>>                        printk("*********!!!!!!!*******sibling?!!\n");
>>                        continue;
>>                }
>>                return tmp;
> 
> 
> Thanks and Regards,
> Ashlesha.

WBR, Sergei

  reply	other threads:[~2006-12-09 16:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-09  2:22 console stuck Ashlesha Shintre
2006-12-09 16:55 ` Sergei Shtylyov [this message]
2006-12-10  0:09   ` Ashlesha Shintre

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=457AEA8B.9030605@ru.mvista.com \
    --to=sshtylyov@ru.mvista.com \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=ashlesha@kenati.com \
    --cc=linux-mips@linux-mips.org \
    /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