tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: allocating memory during kernel startup



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On May 7, 2010, at 4:19 PM, Joerg Sonnenberger wrote:

On Fri, May 07, 2010 at 03:11:32PM -0400, Michael wrote:
It's rasops_reconfig(). It may want to autogenerate box drawing
characters, which needs to allocate memory, but it can happily live
without them and some ports ( macppc for example ) setup a rasops-
based console very early in the boot process. In this case
rasops_reconfig() should simply skip the character generating
process instead of something nasty like a panic to happen.

How much memory are talking about? If it is small, don't bother. If it
makes the difference between reaching init or not, you won't have much
fun with the system later anyway. If it is large, consider doing it
later e.g. when wscons is initialised and recompute until then.

16 character cells for now, so with the biggest font we have in dev/ wsfont that's 2x24x16 - not even one KB.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBS+R+tspnzkX8Yg2nAQKvgwf+MQgRQOyauhDkJeIlHblCXhRrV3EMkVYM
dHKNvoqUtZRzOhP5o42N0EXh8au1pdfZ4yPDr6V5ajy1BtRIq31ywwcBREgK4M25
ZXADlGUINrRmrTK56E0XtqfotFSwIOVXpg/DQuvbrtuBaMhX53mNn8eYpyz8lfvK
Q4msg5Klo588i6QNogm+SRd5gtLLRkF5XEgfDl8mJzmDbvP4Pker6bTGRRycokuV
7BNig3zkGVmUzoxyJwen15kssX9TCfyLNCsyWNkopg6HQVw3Z6mmy6qjEflF4eef
JyIadilfAS/xAZCSdi8ule2UCu7+KCXMkXwUxLNu13FcqHT9/1Ncpg==
=d97w
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index