linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Irq 0 problem
@ 2002-09-06 17:32 Dayton, Dean
  2002-09-07 15:29 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Dayton, Dean @ 2002-09-06 17:32 UTC (permalink / raw)
  To: linuxppc-embedded


I have been trying to port Linux 2.4.18-pre2 to the MPC8266ADS board. I
grabbed the SCC uart.c from 2.5.31.

The kernel loads and runs, the ramdisk is uncompressed and mounted. Then I
take an interrupt with SIVEC=0. SIVEC is now 0 everytime it is read, this
causes do_IRQ() to go into an endless loop.

I modified the code as follows:

 int do_IRQ()
 {
	...
	for (;;)
	{
		irq=get_irq()
-		if (irq >= 0)
+		if (irq > 0)
			ppc_irq_dispatch_handler()
		else
		...
	}
 }

This appears to solve (or at least hide) my problem. Has anyone else run
into this? I think it is occuring during the open of the console port (SCC
1). I ran into the same thing while trying to run on an EST8260 using an SMC
as the console. Am I simply covering up a problem with a misconfigured
device driver?

On another note, is anyone working on PCI support for an 8265/8266? That's
my next task.

Thanks
Dean
-------------
Dean Dayton
System Architect - Applied Innovation Inc.
(614)923-1174
deand@aiinet.com


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-07 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-06 17:32 Irq 0 problem Dayton, Dean
2002-09-07 15:29 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).