linux-mips
[Top] [All Lists]

console stuck

To: Sergei Shtylyov <sshtylyov@ru.mvista.com>, Atsushi Nemoto <anemo@mba.ocn.ne.jp>, linux-mips@linux-mips.org
Subject: console stuck
From: Ashlesha Shintre <ashlesha@kenati.com>
Date: Fri, 08 Dec 2006 18:22:20 -0800
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: ashlesha@kenati.com
Sender: linux-mips-bounce@linux-mips.org
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?

The serial console is getting stuck at this point.

> 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.


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