Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: current kernel on amd64 crashes




To: port-amd64%netbsd.org@localhost

Subject: Re: current kernel on amd64 crashes

From: David Laight <david%l8s.co.uk@localhost>

Date: Sat, 12 Jan 2008 07:18:00 +0000


On Fri, Jan 11, 2008 at 08:35:43PM +0100, Joerg Sonnenberger wrote:
> On Thu, Jan 10, 2008 at 08:41:35PM +0000, David Laight wrote:
> > > Could it be this change ?
> > > -       low = inb(IO_TIMER1 + TIMER_CNTR0);
> > > -       high = inb(IO_TIMER1 + TIMER_CNTR0);
> > > -       count = rtclock_tval - ((high <<8) | low);
> > > -
> > > +       /* insb to make the read atomic */
> > > +       insb(IO_TIMER1+TIMER_CNTR0, &rdval, 2);
> > > +       count = rtclock_tval - rdval;
> > 
> > I don't know, but I also have no reason to believe that the comment (and
> > hence the modified code) is correct.
> 
> The only real diff is that you won't get interrupts processed in the
> middle, I think.

You think incorrectly :-) the x86 'rep' instructions are interruptable
between the iterations.

        David

-- 
David Laight: david%l8s.co.uk@localhost



Follow-Ups:

Re: current kernel on amd64 crashes
From: Christoph Egger

Re: current kernel on amd64 crashes
From: Andrew Doran


References:

Re: current kernel on amd64 crashes
From: Christoph Egger

Re: current kernel on amd64 crashes
From: Manuel Bouyer

Re: current kernel on amd64 crashes
From: Christoph Egger

Re: current kernel on amd64 crashes
From: Manuel Bouyer

Re: current kernel on amd64 crashes
From: David Laight

Re: current kernel on amd64 crashes
From: Joerg Sonnenberger




Prev by Date: Re: wm(4) problems

Next by Date: Re: wm(4) problems

Previous by Thread: Re: current kernel on amd64 crashes

Next by Thread: Re: current kernel on amd64 crashes

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index