Subject: Re: CVS commit: src/sys/dev/wsfont
To: None <jdolecek@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: source-changes
Date: 02/10/2003 22:08:08
In article <20030209184034.4CF45B004@cvs.netbsd.org>
jdolecek@netbsd.org wrote:

> Module Name:	src
> Committed By:	jdolecek
> Date:		Sun Feb  9 18:40:33 UTC 2003
> 
> Modified Files:
> 	src/sys/dev/wsfont: wsfont.c
> 
> Log Message:
> wsfont_lock(): if bitorder/byteorder doesn't match, copy the font to new font
> also if the font is static (and thus it's 'data' point to const/text location) -
> later call to wsfont_rev{bit,byte}() needs to change the font data in-place
> print info about the font copy when it's made

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.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp