From owner-freebsd-current Fri Jul 14 7:46:56 2000 Delivered-To: freebsd-current@freebsd.org Received: from hcshh.hcs.de (hcshh.hcs.de [194.123.40.1]) by hub.freebsd.org (Postfix) with SMTP id 37C5537B53C; Fri, 14 Jul 2000 07:46:47 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (2602 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Fri, 14 Jul 2000 16:46:45 +0200 (CEST) (Smail-3.2.0.104 1998-Nov-20 #1 built 1998-Dec-11) Received: by hcswork.hcs.de (Postfix, from userid 200) id 6202B483D; Fri, 14 Jul 2000 16:46:42 +0200 (METDST) Subject: Re: config/hints changes: panic booting pcvt kernel In-Reply-To: from Steve O'Hara-Smith at "Jul 13, 0 10:37:29 am" To: steveo@eircom.net (Steve O'Hara-Smith) Date: Fri, 14 Jul 2000 16:46:42 +0200 (METDST) Cc: hm@hcs.de, peter@FreeBSD.ORG, dcs@newsguy.com, freebsd-current@FreeBSD.ORG Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL39 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1610 Message-Id: <20000714144642.6202B483D@hcswork.hcs.de> From: hm@hcs.de (Hellmuth Michaelis) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From the keyboard of Steve O'Hara-Smith: > On 13-Jul-00 Hellmuth Michaelis wrote: > > I'm now completely out of ideas .... > > Try and pin down which printf really makes a difference ? Ok, did that. Surprise: i removed all the debugging code and all changes i made to track down what happenes in the kbd driver as well as the pcvt driver - everything now is completely as it was and it tracks down to a single printf in /sys/dev/kbd.c: adding it lets a pcvt kernel boot as happily as before, removing this printf gives the described panic: /* find the keyboard specified by a driver name and a unit number */ int kbd_find_keyboard(char *driver, int unit) { int i; printf("kbd_find_keyboard\n"); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ for (i = 0; i < keyboards; ++i) { ... I'm currently re-cvsupping/recompiling a completly fresh tree to reproduce this to make shure it is really this single printf. Also i will try out something to make shure it is not a timing problem somewhere. > I recall a long time ago a bit of code that had calls to a function > that did nothing, the comment was that it prevented an MSC optimiser bug from > screwing things up. Oh oh ... I would really appreciate it if someone else would have a look at this. hellmuth -- Hellmuth Michaelis Tel +49 40 55 97 47-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 55 97 47-77 Oldesloer Strasse 97-99 Mail hm [at] hcs.de D-22457 Hamburg WWW http://www.hcs.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message