linux-mips
[Top] [All Lists]

Re: console stuck

To: ashlesha@kenati.com
Subject: Re: console stuck
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Date: Sat, 09 Dec 2006 19:55:39 +0300
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>, linux-mips@linux-mips.org
In-reply-to: <1165630940.7860.7.camel@sandbar.kenati.com>
Organization: MontaVista Software Inc.
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1165630940.7860.7.camel@sandbar.kenati.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803
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

<Prev in Thread] Current Thread [Next in Thread>