From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 27 21:40:21 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8913516A4F2 for ; Thu, 27 Jul 2006 21:40:20 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5123743D7B for ; Thu, 27 Jul 2006 21:40:08 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6RLdqXw080692; Thu, 27 Jul 2006 17:39:53 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 27 Jul 2006 17:35:54 -0400 User-Agent: KMail/1.9.1 References: <1153997829.12770@origin.intron.ac> <868xme28nt.fsf@xps.des.no> <200607272104.13079.hselasky@c2i.net> In-Reply-To: <200607272104.13079.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200607271735.55199.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 27 Jul 2006 17:39:54 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1624/Thu Jul 27 13:11:25 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= , Intron , Hans Petter Selasky Subject: Re: How to Use ddb(4)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jul 2006 21:40:21 -0000 On Thursday 27 July 2006 15:04, Hans Petter Selasky wrote: > On Thursday 27 July 2006 20:40, Dag-Erling Sm=F8rgrav wrote: > > maksim yevmenkin writes: > > > Dag-Erling Sm=F8rgrav writes: > > > > No, kbdmux needs to be fixed so it works in DDB. > > > > > > actually, atkbd(4) needs to be fixed to support "polled" mode :) > > > > It used to work fine before kbdmux(4) came along... > > >=20 > Just a comment: Don't forget to lock Giant before calling anything in the= =20 > keyboard layer. That means DDB must lock Giant, else at least my new USB= =20 > keyboard driver will panic, saying Giant is not owned. The old USB keyboa= rd=20 > driver did not care about this. DDB should not be acquiring locks or depend on being able to do so. When y= ou=20 panic the machine is an unknown state for one, and you really want to leave= =20 the overall system state as undisturbed as possible while in the debugger t= o=20 aid in debugging. =2D-=20 John Baldwin