linux-mips
[Top] [All Lists]

Re: Ooops in kmalloc from request_region

To: ldavies@oz.agile.tv
Subject: Re: Ooops in kmalloc from request_region
From: Steve Johnson <stevej@ridgerun.com>
Date: Wed, 14 Feb 2001 06:16:08 -0700
Cc: linux-mips <linux-mips@oss.sgi.com>
Organization: Ridgerun, Inc.
References: <3A8A02E6.9030408@agile.tv>
Sender: owner-linux-mips@oss.sgi.com
Liam,

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


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