Thread (6 messages) 6 messages, 3 authors, 2002-12-18

Re: kmalloc and startup process

From: Pantelis Antoniou <hidden>
Date: 2002-12-17 15:06:40

Pantelis Antoniou wrote:
Joakim Tjernlund wrote:
quoted
Don't know when it's safe to call kmalloc, but maybe you
should avoid kmalloc?  Is it possible to use
kmalloc when the microcode(8xx_io/micropatch.c) is loaded?

  Jocke
I fixed the problem via another way.

At startup I use a statically allocated area, or
the bootmem allocated page.

The kmalloc is used only when a request for memory
cannot be satisfied by this memory.

I will probably post the patch for the hostmem today,
followed tommorow by the patch for the dpmem.

Stay tuned.
It seems that I don't have enough time to post the patch today.
Tommorow however I'll post the final one.

Regards
quoted
quoted
Hi

I'm hacking now the 8xx hostalloc and dpalloc stuff,
and I have a a question.

At what point in the startup process is it OK to call
kmalloc?

I don't think it is safe at the setup_arch point.

Is this correct?

Thanks

--
Pantelis Antoniou
INTRACOM S.A. Greece




--
Pantelis Antoniou
INTRACOM S.A. Greece




--
Pantelis Antoniou
INTRACOM S.A. Greece


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help