From: Paul M. <le...@li...> - 2007-03-12 23:40:01
|
On Mon, Mar 12, 2007 at 08:49:00PM +0000, Kristoffer Ericson wrote: > The only part of the Kernel panic I can see is just the data dump, which > doesnt help you much. (adresses running from 1c80: -> 1fe0). > > I believe its somehow related to the PATA driver, but hard to be sure. > Yes, you should be using the MMIO address, the problem is that you're using the PIO address and it's completely unhandled by your I/O routines. > +static struct resource cf_ide_resources[] = { > + [0] = { > + .start = 0x1f0, > + .end = 0x1f0 + 8, > + .flags = IORESOURCE_IO, > + }, > + [1] = { > + .start = 0x3f6, > + .end = 0x3f7, > + .flags = IORESOURCE_IO, > + }, So change these to the MMIO address, and switch to IORESOURCE_MEM. > +static int __init hp6xx_devices_setup(void) > +{ > + return platform_add_devices(hp6xx_devices,ARRAY_SIZE(hp6xx_devices)); > +} > + > static void __init hp6xx_setup(char **cmdline_p) > { > u8 v8; > u16 v; > > + device_initcall(hp6xx_devices_setup); > + Move this after hp6xx_devices_setup(). > diff --git a/include/asm-sh/irq.h b/include/asm-sh/irq.h > index 29d4fb9..eaf77fe 100644 > --- a/include/asm-sh/irq.h > +++ b/include/asm-sh/irq.h > @@ -190,7 +190,7 @@ static inline int generic_irq_demux(int > > #define irq_canonicalize(irq) (irq) > #define irq_demux(irq) sh_mv.mv_irq_demux(irq) > - > +#define __irq_demux(irq) (irq) > #ifdef CONFIG_4KSTACKS > extern void irq_ctx_init(int cpu); > extern void irq_ctx_exit(int cpu); > What is using this? |