Subject: Re: consinit in machdep.c?
To: Perry E. Metzger <perry@piermont.com>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 03/09/2003 19:08:41
On Sun, Mar 09, 2003 at 12:36:13PM -0500, Perry E. Metzger wrote:
> 
> Jason R Thorpe <thorpej@wasabisystems.com> writes:
> > On Sun, Mar 09, 2003 at 11:33:29AM -0500, Perry E. Metzger wrote:
> >  > i386/machdep.c:init386() contains, early on:
> >  > 
> >  >         consinit();     /* XXX SHOULD NOT BE DONE HERE */
> >  > 
> >  > Why is it there? It really should only be done in init_main.c:main()
> > 
> > It's there so you can see console messages before main() is called.
> 
> Well, duh, of course.
> 
> However, the only thing running before main() is init386 itself, which
> only calls printf in certain debugging modes.

Where do the first of these messages come from - they appear on the
console in green, but are missing from dmesg (which starts with the
kernel id).  Would they still appear if it were removed?

[ using 607852 bytes of netbsd ELF symbol table ]
BIOS CFG: Model-SubM-Rev: fc-00-01, 0x74<EBDA,KBDINT,RTC,IC2>
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.6N (GENERIC) #4: Wed Feb  5 10:50:15 GMT 2003
    dsl@snowdrop:/bsd/obj/sys/arch/i386/compile/GENERIC
total memory = 32380 KB
...

	David

-- 
David Laight: david@l8s.co.uk