From owner-freebsd-current Wed Apr 24 20:39:15 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA09421 for current-outgoing; Wed, 24 Apr 1996 20:39:15 -0700 (PDT) Received: from xi.dorm.umd.edu (root@xi.dorm.umd.edu [129.2.152.45]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id UAA09415 Wed, 24 Apr 1996 20:39:10 -0700 (PDT) Received: from localhost (smpatel@localhost [127.0.0.1]) by xi.dorm.umd.edu (8.7.5/8.6.12) with SMTP id XAA04108; Wed, 24 Apr 1996 23:38:20 -0400 (EDT) Date: Wed, 24 Apr 1996 23:38:20 -0400 (EDT) From: Sujal Patel X-Sender: smpatel@xi.dorm.umd.edu To: Bruce Evans cc: gpalmer@freebsd.org, current@freebsd.org Subject: Re: request for a new "feature" as regards DDB In-Reply-To: <199604250239.MAA01585@godzilla.zeta.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 25 Apr 1996, Bruce Evans wrote: [ In reference to implementing a timeout in DDB to dump core and reboot] > >Can we sit in a loop, while polling the keyboard for input? > > Yes, you can usefully poll the clock(s) while polling the keyboard, > provided: > > a. polling is non-destructive. This makes it difficult to use timer0, > timer1 and the RTC. Perhaps they can be read without (destructively) > latching the count. Even that steals some state if a non-debugging If using the timers is difficult, you could record (on boot up) the approximate time that an inb() takes and use that figure to "approximate" the amount of time we should wait for keyboard input. It doesn't have to be exactly the same for each system, just a "good amount" of time. Sujal