possible endless loop in PROM initialization

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Markus Dahms
Date: Monday, August 20, 2007 - 12:59 am

Hey,

while trying to define a non-unique devalias at the Sun PROM prompt
(the SPARCclassic X has wrong aliases for scsi, disk1, etc. in the
PROM, at least mine) I fell over a bug resulting in an endless loop
while booting the kernel.

The problem is the getting the properties list of the /aliases node.
As the next element in this list is identified by name and the
function which retrieves this property always returns the first
occurrence this goes forever....

I could track down the issue to the function __prom_nextprop() in
arch/sparc/prom/tree.c, but I am now looking for the definition of
prom_nodeops->no_nextprop() without success.

My naive solution would be to return not the first but the last
occurrence of a property.

Greetings,

	Markus

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
possible endless loop in PROM initialization, Markus Dahms, (Mon Aug 20, 12:59 am)
Re: possible endless loop in PROM initialization, David Miller, (Mon Aug 20, 1:06 am)
Re: possible endless loop in PROM initialization, Markus Dahms, (Mon Aug 20, 3:53 am)
Re: possible endless loop in PROM initialization, Chris Newport, (Mon Aug 20, 4:43 am)
Re: possible endless loop in PROM initialization, Markus Dahms, (Mon Aug 20, 6:19 am)
Re: possible endless loop in PROM initialization, Krzysztof Helt, (Mon Aug 20, 11:19 am)