linux-mips
[Top] [All Lists]

Re: Ooops in kmalloc from request_region

To: Steve Johnson <stevej@ridgerun.com>
Subject: Re: Ooops in kmalloc from request_region
From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Date: Wed, 14 Feb 2001 14:19:31 +0100 (MET)
Cc: ldavies@oz.agile.tv, linux-mips <linux-mips@oss.sgi.com>
In-reply-to: <3A8A8518.F66EBFA3@ridgerun.com>
Sender: owner-linux-mips@oss.sgi.com
On Wed, 14 Feb 2001, Steve Johnson wrote:
>     You can't call kmalloc that early in the startup process.  Look at main.c,
> and init_IRQ comes before any of the memory initialization.
> 
>     Steve
> 
> Liam Davies wrote:
> 
> > I am currently at the stage of calling request_region in my irq_setup
> > function.
> > The call to request_region does a kmalloc which oops. The box has 256Mb Ram.
> >
> > Is this the right stage to be doing this call? Is there something that I
> > have missed
> > in setting up the memory regions or paging?

Hence use request_resource() while passing a statically allocated and
initialized struct resource instead.

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium


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