Subject: Re: Kernel cross build problems
To: Ian Fry <Ian.Fry@sophos.com>
From: Ben Harris <bjh21@netbsd.org>
List: port-arm26
Date: 11/07/2001 11:51:15
On Wed, 7 Nov 2001, Ian Fry wrote:

> I can now boot my A4000 to single user mode and enable swapping, which I've
> never been able to do before. This stops all the 'VM shortage, sleeping'
> messages :-) I still had to use a 'tuned' kernel config, though - the FOURMEG
> config still doesn't quite work.

Wow!  I'd almost got my A3020 to work this well, but not quite.

> Running 'nm --sort-size' on my kernel, there are still some quite large
> variables (here are all the ones over 0x200 bytes):
>
> 00000220 B mbstat
> 00000220 B tcpstat
> 00000230 D cfdata
> 00000280 B bucket
> 0000031c B sigacts0
> 0000031c D wskbd_srcops
> 00000400 D defcorename
> 00000400 B sched_slpque
> 00000438 D cdevsw
> 00000dbc B tcp_syn_cache
> 00000de8 D vt220l8x8
> 00000f20 B kmemstats
> 00001000 B kernel_pmap_entries
> 00001610 B nfsrtt
> 00001800 D sysent
>
> Of these, I think that 'kmemstats' isn't needed (as my kernel doesn't have
> 'options KMEMSTATS'),

Also mbstat and tcpstat, I suspect.

> and vt220l8x8 could probably be made const (presumably,
> all the other wsfonts will need similar fixes)

No, it can't.  The wsfont machinery byte- and bit-swaps fonts in place if
they turn out to be the wrong endianness for the framebuffer.

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>