Subject: Re: CVS commit: src/sys/dev/wsfont
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 02/10/2003 14:33:32
Izumi Tsutsui wrote:
> Your change still has a problem.
> 
> When consinit() is called at the first time, uvm_init() is not called yet
> and we cannot use malloc(). So we cannot call wsfont_add0() imlicitly
> at least if ent->lockcount == 0.

What a pain.
OK, I'll back the whole data constification change off for now.

Another option would be to byte/bit swap the font when loading the
font to adapter, i.e. in vga_loadchars() or similar routine in
other wscons drivers. It's not like the font loading would be
executed very frequently.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-