Latest -CURRENT/i386 could not start under VirutalBox 4.1.18 and 4.2 (Windows host): hangs up after atrtc0 detection

Ian Lepore freebsd at damnhippie.dyndns.org
Wed Sep 19 21:12:09 UTC 2012


On Wed, 2012-09-19 at 14:08 -0700, Adrian Chadd wrote:
> On 19 September 2012 14:05, Ian Lepore <freebsd at damnhippie.dyndns.org> 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




More information about the freebsd-current mailing list