From owner-freebsd-current@FreeBSD.ORG Wed Sep 19 21:12:09 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D7E0106564A; Wed, 19 Sep 2012 21:12:09 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id D91E48FC0C; Wed, 19 Sep 2012 21:12:08 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id q8JLC8rX060873; Wed, 19 Sep 2012 15:12:08 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q8JLC6b4059102; Wed, 19 Sep 2012 15:12:06 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) From: Ian Lepore To: Adrian Chadd In-Reply-To: References: <80840563.20120920002200@serebryakov.spb.ru> <1252171344.20120920003724@serebryakov.spb.ru> <1348087584.95562.55.camel@revolution.hippie.lan> <1859311530.20120920005449@serebryakov.spb.ru> <1348088706.95562.61.camel@revolution.hippie.lan> Content-Type: text/plain; charset="us-ascii" Date: Wed, 19 Sep 2012 15:12:06 -0600 Message-ID: <1348089126.95562.62.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: lev@freebsd.org, freebsd-current@freebsd.org Subject: Re: Latest -CURRENT/i386 could not start under VirutalBox 4.1.18 and 4.2 (Windows host): hangs up after atrtc0 detection X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2012 21:12:09 -0000 On Wed, 2012-09-19 at 14:08 -0700, Adrian Chadd wrote: > On 19 September 2012 14:05, Ian Lepore wrote: > > >> Add something to atrtc_start() to only loop over that loop say, 64k > >> times before dropping out; and print an error if it hits that > >> condition. > >> > >> Also, what's that RTCSA_8192 bit do? > > > > That should set the interrupt rate really high, to minimize the time > > wasted waiting for the status bit to change in the register. Maybe > > that's the part that vbox isn't emulating well and so it never simulates > > an interrupt and leaves that loop. Or maybe because the loop is a tight > > busy-wait the emulator never gets control to simulate the occurance of > > the interrupt. > > Right. Being totally clueless, is atrc_start() called just at > probe/attach, or during normal operation? > It's called just once, from the attach() routine for the rtc device. -- Ian