Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 1997 11:10:54 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        smp@csn.net (Steve Passe)
Cc:        terry@lambert.org, smp@freebsd.org
Subject:   Re: success!!
Message-ID:  <199701201810.LAA15672@phaeton.artisoft.com>
In-Reply-To: <199701201743.KAA11391@clem.systemsix.com> from "Steve Passe" at Jan 20, 97 10:43:48 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > Why not just dynmically allocate the things and be done with it forever?
> > 
> > The code doesn't have to be 100% efficient; it's boot code.
> 
> its a matter of timing, can I safely use malloc early in init386?

Can you count them before you need them?

I don't think you can use malloc, but you should be able to allocate
pages, as long as you do it in both address spaces.  That's just my
guess, though: see below.

Unfortunately, the ideal approach would probably be to overallocate
by a huge amount, and discard the pages later.  Unfortunately, this
is not possible in the current VM (kernel page discarding).

The person to ask to find out about malloc() in init386 for sure would
probably be Bruce, or maybe John.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701201810.LAA15672>